# HG changeset patch # User Augie Fackler # Date 2015-09-01 18:41:41 # Node ID f643b68633820104d44820bf07d1d13748b4b93b # Parent f77a3f27cea533232dc107a72773e90e2de9549d buildrpm: mkdir -p two needed directories (issue4779) Without this, building RPMs can fail. diff --git a/contrib/buildrpm b/contrib/buildrpm --- a/contrib/buildrpm +++ b/contrib/buildrpm @@ -56,6 +56,7 @@ else 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 @@ if [ "$PYTHONVER" ]; then ) fi +mkdir -p $RPMBUILDDIR/SPECS rpmspec=$RPMBUILDDIR/SPECS/mercurial.spec sed -e "s,^Version:.*,Version: $version," \