buildrpm: mkdir -p two needed directories (issue4779)
authorAugie Fackler <augie@google.com>
Tue, 01 Sep 2015 14:41:41 -0400
changeset 26139 f643b6863382
parent 26138 f77a3f27cea5
child 26140 a31ffc445f02
buildrpm: mkdir -p two needed directories (issue4779) Without this, building RPMs can fail.
contrib/buildrpm
--- a/contrib/buildrpm	Tue Sep 01 17:09:00 2015 -0500
+++ b/contrib/buildrpm	Tue Sep 01 14:41:41 2015 -0400
@@ -56,6 +56,7 @@
     RPMPYTHONVER=%{nil}
 fi
 
+mkdir -p $RPMBUILDDIR/SOURCES
 $HG archive -t tgz $RPMBUILDDIR/SOURCES/mercurial-$version-$release.tar.gz
 if [ "$PYTHONVER" ]; then
 (
@@ -79,6 +80,7 @@
 )
 fi
 
+mkdir -p $RPMBUILDDIR/SPECS
 rpmspec=$RPMBUILDDIR/SPECS/mercurial.spec
 
 sed -e "s,^Version:.*,Version: $version," \