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:
@@ -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."
|
||||
|
Reference in New Issue
Block a user