rpms: create missing builds dir if it doesn't exist

This commit is contained in:
Mads Kiilerich 2015-04-14 23:51:02 -04:00
parent ea7df88985
commit 8561ae6b39

View File

@ -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