2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-21 10:40:24 +00:00

Merge pull request #4664 from bybai/fixscript

fix buildpythonrpm when there is no /root/rpmbuild/SOURCES directory
This commit is contained in:
xuweibj
2018-01-22 13:29:40 +08:00
committed by GitHub

View File

@@ -22,7 +22,7 @@ VER=`cat Version`
REL="--define"
EASE='usedate 1'
RPMROOT=/root/rpmbuild
mkdir -p $RPMROOT/SOURCES
rpmbuild --version > /dev/null
if [ $? -gt 0 ]; then
echo "Error: rpmbuild does not appear to be installed or working."