packaging: move dockerrpm output directory creation to dockerrpm stable
authorMads Kiilerich <mads@kiilerich.com>
Fri, 01 Nov 2019 12:18:17 +0100
branchstable
changeset 43355 433cdcb37321
parent 43354 166808ff91de
child 43356 5989f697890a
packaging: move dockerrpm output directory creation to dockerrpm Avoid having to compute the directory in two places in different environments.
contrib/packaging/Makefile
contrib/packaging/dockerrpm
--- a/contrib/packaging/Makefile	Thu Oct 31 11:53:11 2019 +0100
+++ b/contrib/packaging/Makefile	Fri Nov 01 12:18:17 2019 +0100
@@ -105,7 +105,6 @@
 
 .PHONY: docker-fedora$(1)
 docker-fedora$(1):
-	mkdir -p $$(HGROOT)/packages/fedora$(1)
 	./dockerrpm fedora$(1)
 
 endef
@@ -123,7 +122,6 @@
 
 .PHONY: docker-centos$(1)
 docker-centos$(1):
-	mkdir -p $$(HGROOT)/packages/centos$(1)
 	./dockerrpm centos$(1) $$(if $$(filter $(1),$$(CENTOS_WITH_PYTHON_RELEASES)),--withpython)
 
 endef
--- a/contrib/packaging/dockerrpm	Thu Oct 31 11:53:11 2019 +0100
+++ b/contrib/packaging/dockerrpm	Fri Nov 01 12:18:17 2019 +0100
@@ -21,6 +21,7 @@
 $BUILDDIR/hg-docker build --build-arg UID=$DOCKERUID --build-arg GID=$DOCKERGID $BUILDDIR/docker/$PLATFORM $CONTAINER
 
 RPMBUILDDIR=$ROOTDIR/packages/$PLATFORM
+mkdir -p $RPMBUILDDIR
 $ROOTDIR/contrib/packaging/buildrpm --rpmbuilddir $RPMBUILDDIR --prepare $*
 
 DSHARED=/mnt/shared