You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# set group and permissions correctly on the built rpms
@@ -455,7 +457,7 @@ chmod -R g+w $DESTDIR
455
457
chgrp -R $SYSGRP$SRCDIR
456
458
chmod -R g+w $SRCDIR
457
459
458
-
else# end of very long if-not-promote
460
+
else# end of very long if-not-promote ### @LINE193 ###
459
461
# we are only promoting (not building)
460
462
setversionvars
461
463
setbranch
@@ -490,18 +492,18 @@ EOF
490
492
#!/bin/sh
491
493
cd `dirname $0`
492
494
REPOFILE=`basename xCAT-*.repo`
493
-
if [[ $REPOFILE == "xCAT-*.repo" ]]; then
495
+
if [ $REPOFILE = "xCAT-*.repo" ]; then
494
496
echo "ERROR: For xcat-dep, please execute $0 in the correct <os>/<arch> subdirectory"
495
497
exit 1
496
498
fi
497
499
#
498
500
# default to RHEL yum, if doesn't exist try Zypper
499
501
#
500
502
DIRECTORY="/etc/yum.repos.d"
501
-
if [[ ! -d ${DIRECTORY} ]]; then
502
-
DIRECTORY="/etc/zypp/repos.d"
503
+
if [ ! -d "$DIRECTORY" ]; then
504
+
DIRECTORY="/etc/zypp/repos.d"
503
505
fi
504
-
sed -e 's|baseurl=.*|baseurl=file://'"`pwd`"'|' $REPOFILE | sed -e 's|gpgkey=.*|gpgkey=file://'"`pwd`"'/repodata/repomd.xml.key|' > ${DIRECTORY}/$REPOFILE
506
+
sed -e 's|baseurl=.*|baseurl=file://'"`pwd`"'|' $REPOFILE | sed -e 's|gpgkey=.*|gpgkey=file://'"`pwd`"'/repodata/repomd.xml.key|' > "$DIRECTORY/$REPOFILE"
505
507
cd -
506
508
EOF2
507
509
chmod 775 mklocalrepo.sh
@@ -521,6 +523,7 @@ fi
521
523
#
522
524
BUILDINFO=$XCATCORE/buildinfo
523
525
echo"VERSION=$VER">$BUILDINFO
526
+
echo"RELEASE=$XCAT_RELEASE">>$BUILDINFO
524
527
echo"BUILD_TIME=$BUILD_TIME">>$BUILDINFO
525
528
echo"BUILD_MACHINE=$BUILD_MACHINE">>$BUILDINFO
526
529
echo"COMMIT_ID=$COMMIT_ID">>$BUILDINFO
@@ -545,7 +548,7 @@ if [ -n "$UP" ] && [ "$UP" == 0 ]; then
545
548
fi
546
549
#else we will continue
547
550
548
-
# Upload the individual RPMs to xcat.org
551
+
# Upload the individual RPMs to xcat.org
549
552
if [ "$OSNAME"="AIX" ];then
550
553
YUM=aix
551
554
else
@@ -561,13 +564,13 @@ if [ "$REL" = "devel" -o "$PREGA" != 1 ]; then
561
564
do:;done
562
565
fi
563
566
564
-
# Upload the individual source RPMs to xcat.org
567
+
# Upload the individual source RPMs to xcat.org
565
568
i=0
566
569
echo"Uploading src RPMs from $SRCD to $YUMDIR/$YUM/$REL$EMBEDDIR/ ..."
567
570
while [ $((i+=1))-le 5 ] &&! rsync -urLv --delete $SRCD$USER@$SERVER:$YUMDIR/$YUM/$REL$EMBEDDIR/
568
571
do:;done
569
572
570
-
# Upload the tarball to xcat.org
573
+
# Upload the tarball to xcat.org
571
574
if [ "$PROMOTE"= 1 -a"$REL"!="devel"-a"$PREGA"!= 1 ];then
0 commit comments