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

login
register
mail settings
Submitter Mads Kiilerich
Date April 15, 2015, 3:51 a.m.
Message ID <04d0c590a3fba273e128.1429069908@localhost.localdomain>
Download mbox | patch
Permalink /patch/8674/
State Accepted
Delegated to: Pierre-Yves David
Headers show

Comments

Mads Kiilerich - April 15, 2015, 3:51 a.m.
# HG changeset patch
# User Mads Kiilerich <madski@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
Pierre-Yves David - April 15, 2015, 4:35 a.m.
On 04/14/2015 11:51 PM, Mads Kiilerich wrote:
> # HG changeset patch
> # User Mads Kiilerich <madski@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

Trusting you on that.

Pushed to the clowncopter.

Patch

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