summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2024-04-23 15:15:04 +0200
committerRemi Collet <remi@php.net>2024-04-23 15:15:04 +0200
commit9976999105048d7cb4c99686b46bbe7a2cb1e43b (patch)
tree00aaabaf2e94e32348bb9f001a41b17d5d07d1e1
parent9e9e0d7dcdc77e261bc5d944c2121cef493b3e2b (diff)
tweak output with RPM name
-rwxr-xr-xmockit20
-rwxr-xr-xmockrun3
2 files changed, 12 insertions, 11 deletions
diff --git a/mockit b/mockit
index b99ed6a..7adaa82 100755
--- a/mockit
+++ b/mockit
@@ -2,9 +2,9 @@
if [ "$2" = "" ]; then
echo -e "\nusage: $0 [ options ] SRPM distro [ min_ver [, max_ver [, mock_options ]]]\n"
+ echo -e "\t--redis store build command in redis queue"
echo -e "\t--nobase | --scl only build SCL packages"
- echo -e "\t--noscl | --base only build base packages"
- echo -e "\t--redis store build command in redis queue\n"
+ echo -e "\t--noscl | --base only build base packages\n"
exit 0
fi
@@ -13,14 +13,6 @@ BUILD_BASE=1
BUILD_SCLS=1
REDIS=0
-if [ "$1" == "--nobase" -o "$1" == "--scl" ]; then
- BUILD_BASE=0
- shift
-fi
-if [ "$1" == "--noscl" -o "$1" == "--base" ]; then
- BUILD_SCLS=0
- shift
-fi
if [ "$1" == "--redis" ]; then
CHECK=$(redis-cli ping)
[ "$CHECK" = "PONG" ] || exit 1
@@ -28,6 +20,14 @@ if [ "$1" == "--redis" ]; then
shift
fi
+if [ "$1" == "--nobase" -o "$1" == "--scl" ]; then
+ BUILD_BASE=0
+ shift
+elif [ "$1" == "--noscl" -o "$1" == "--base" ]; then
+ BUILD_SCLS=0
+ shift
+fi
+
SRPM=$1
DIST=$2
shift 2
diff --git a/mockrun b/mockrun
index 7f4a935..fddac87 100755
--- a/mockrun
+++ b/mockrun
@@ -33,7 +33,8 @@ do
fi
fi
TXT="$(echo $CMD | sed -e 's/^.*-r //;s/ .*$//') "
- echo -en "\r$(date +%X) ${TXT:0:10}"
+ RPM="$(echo $CMD | sed -e 's:\.rpm.*$:.rpm:;s:^.*/::')"
+ echo -en "\r$(date +%X) $RPM ${TXT:0:10}"
$CMD --uniqueext=$PPID && echo " Ok." || echo " Error !"
done