changeset 26139:f643b6863382

buildrpm: mkdir -p two needed directories (issue4779) Without this, building RPMs can fail.
author Augie Fackler <augie@google.com>
date Tue, 01 Sep 2015 14:41:41 -0400
parents f77a3f27cea5
children a31ffc445f02
files contrib/buildrpm
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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," \