summaryrefslogtreecommitdiffstats
path: root/mockit
diff options
context:
space:
mode:
Diffstat (limited to 'mockit')
-rwxr-xr-xmockit28
1 files changed, 20 insertions, 8 deletions
diff --git a/mockit b/mockit
index 9366631..c3a3c1d 100755
--- a/mockit
+++ b/mockit
@@ -3,6 +3,7 @@
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--valkey store build command in valkey queue"
echo -e "\t--list list queue content"
echo -e "\t--nobase | --scl only build SCL packages"
echo -e "\t--noscl | --base only build base packages\n"
@@ -19,14 +20,14 @@ REMOTE=0
if [ "$(uname -m)" = "x86_64" ]; then
SUF=x
QUEUE=mockx
- REDISCLI="redis-cli"
+ REDISCLI="valkey-cli"
else
SUF=a
QUEUE=mocka
- REDISCLI="redis-cli -h remi"
+ REDISCLI="valkey-cli -h remi"
fi
-if [ "$1" == "--redis" ]; then
+if [ "$1" == "--redis" -o "$1" == "--valkey" ]; then
CHECK=$($REDISCLI ping)
[ "$CHECK" = "PONG" ] || exit 1
REDIS=1
@@ -132,23 +133,34 @@ fi
echo mockit $SRPM $DIST $MIN $MAX $@
case $DIST in
fc39x|fc39a|fc40x|fc40a|fc41x|fc41a|el9x|el9a)
- LST="82 81 74 80 83"
+ LST="82 81 74 80 83 84"
SCL="74 80 81 82 83 84"
;;
el8a)
- LST="72 73 74 80 81 82 83"
+ LST="72 73 74 80 81 82 83 84"
SCL="72 73 74 80 81 82 83 84"
;;
el8x)
- LST="72 73 74 80 81 82 83"
+ LST="72 73 74 80 81 82 83 84"
SCL="56 70 71 72 73 74 80 81 82 83 84"
;;
allx)
if [ $REDIS -ge 1 ]; then
for i in fc39x fc40x fc41x el8x el9x fc39a fc40a fc41a el8a el9a
do
- [ $BUILD_BASE -ge 1 ] && $0 --redis --base $SRPM $i $MIN $MAX $@
- [ $BUILD_SCLS -ge 1 ] && $0 --redis --scl $SRPM $i $MIN $MAX $@
+ [ $BUILD_BASE -ge 1 ] && $0 --valkey --base $SRPM $i $MIN $MAX $@
+ [ $BUILD_SCLS -ge 1 ] && $0 --valkey --scl $SRPM $i $MIN $MAX $@
+ done
+ else
+ echo Not supported for direct build
+ fi
+ ;;
+ ztsx)
+ if [ $REDIS -ge 1 ]; then
+ [ $MAX -gt 83 ] && MAX=83
+ for i in fc39x fc40x el8x el9x
+ do
+ [ $BUILD_BASE -ge 1 ] && $0 --valkey --base $SRPM $i $MIN $MAX $@
done
else
echo Not supported for direct build