From e5bfcd5bebc77f279c44d37cd57d006902741477 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 26 Apr 2024 10:18:43 +0200 Subject: allow to queue for all targets --- mockit | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'mockit') diff --git a/mockit b/mockit index 3b8c9a0..ef11c41 100755 --- a/mockit +++ b/mockit @@ -33,12 +33,17 @@ if [ "$1" == "--redis" ]; then shift fi +# Queue commands if [ "$1" == "--list" ]; then echo "-- x86_64 queue --" $REDISCLI smembers mockx echo "-- aarch64 queue --" $REDISCLI smembers mocka exit 0 +elif [ "$1" == "--clean" ]; then + $REDISCLI del mockx + $REDISCLI del mocka + exit 0 fi if [ "$1" == "--nobase" -o "$1" == "--scl" ]; then @@ -112,7 +117,12 @@ fi # Send to remote aarch64 builder if [ $REMOTE -ge 1 ]; then - scp $SRPM remi@ampere:todo/ + LST=/tmp/aarch64sendlist + touch $LST + if ! grep -q $SRPM $LST; then + scp $SRPM remi@ampere:todo/ + echo $SRPM >>$LST + fi mocketc=/home/remi/mock QUEUE=mocka SRPM=/home/remi/todo/$(basename $SRPM) @@ -137,6 +147,17 @@ case $DIST in LST="54 55 56 70 71 72 73 74 80 81 82 83" SCL="54 55 56 70 71 72 73 74 80 81 82 83" ;; + allx) + if [ $REDIS -ge 1 ]; then + for i in fc38x fc39x fc40x el7x el8x el9x fc39a fc40a 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 $@ + done + else + echo Not support for direct build + fi + ;; *) echo Unkown DIST $DIST exit 1 -- cgit