[PATCH 2 of 2 rhel5] rpms: create missing builds dir if it doesn't exist

Mads Kiilerich mads at kiilerich.com
Tue Apr 14 22:51:48 CDT 2015


# HG changeset patch
# User Mads Kiilerich <madski at unity3d.com>
# Date 1429069862 14400
#      Tue Apr 14 23:51:02 2015 -0400
# Node ID 04d0c590a3fba273e128e8b59022c8606813cfe6
# Parent  3a8c21bb8069ebb217a3e324d68b6a4a56eeb978
rpms: create missing builds dir if it doesn't exist

diff --git a/contrib/buildrpm b/contrib/buildrpm
--- a/contrib/buildrpm
+++ b/contrib/buildrpm
@@ -74,6 +74,7 @@ fi
 $HG archive -t tgz $RPMBUILDDIR/SOURCES/mercurial-$version-$release.tar.gz
 if [ "$PYTHONVER" ]; then
 (
+    mkdir -p build
     cd build
     PYTHON_SRCFILE=Python-$PYTHONVER.tgz
     [ -f $PYTHON_SRCFILE ] || curl -Lo $PYTHON_SRCFILE http://www.python.org/ftp/python/$PYTHONVER/$PYTHON_SRCFILE


More information about the Mercurial-devel mailing list