diff contrib/buildrpm @ 27788:d713fa934fb9

buildrpm: move creation of RPM directories from dockerrpm Handling the creation of the RPM directories in buildrpm is more consistent and takes care of non-docker builds as well.
author Mathias De Maré <mathias.demare@gmail.com>
date Thu, 07 Jan 2016 06:44:37 +0100
parents 6474b64045fb
children e7bd55db011b
line wrap: on
line diff
--- a/contrib/buildrpm	Thu Jan 14 10:31:06 2016 -0800
+++ b/contrib/buildrpm	Thu Jan 07 06:44:37 2016 +0100
@@ -68,7 +68,7 @@
     RPMPYTHONVER=%{nil}
 fi
 
-mkdir -p $RPMBUILDDIR/SOURCES
+mkdir -p $RPMBUILDDIR/{SOURCES,BUILD,SRPMS,RPMS}
 $HG archive -t tgz $RPMBUILDDIR/SOURCES/mercurial-$version-$release.tar.gz
 if [ "$PYTHONVER" ]; then
 (