summaryrefslogtreecommitdiffstats
path: root/mockit
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2023-09-18 16:21:56 +0200
committerRemi Collet <remi@php.net>2023-09-18 16:21:56 +0200
commitf8fa03bc2fccddf7a06cc9e8cf2577542c0a9f17 (patch)
treebfd8d4b5ea7ead2dc42cbc8866bce7126770a596 /mockit
parent037584b73c4bb5d54d340b257309e614a12a13fd (diff)
allow to name the queue
Diffstat (limited to 'mockit')
-rwxr-xr-xmockit6
1 files changed, 4 insertions, 2 deletions
diff --git a/mockit b/mockit
index 56bb817..2327bb7 100755
--- a/mockit
+++ b/mockit
@@ -72,18 +72,20 @@ case $DIST in
;;
esac
+ID=${QUEUE:-$(uuidgen)}
+
[ $BUILD_BASE -ge 1 ] && for i in $LST
do
if [ 0$i -ge $MIN -a 0$i -le $MAX ]; then
echo -n "$(date +%X) $i "
- mock -q --configdir=$mocketc --uniqueext=$(uuidgen) -r ${DIST}${i} rebuild $SRPM "$@" && echo " Ok." || echo " Error !"
+ mock -q --configdir=$mocketc --uniqueext=$ID -r ${DIST}${i} rebuild $SRPM "$@" && echo " Ok." || echo " Error !"
fi
done
[ $BUILD_SCLS -ge 1 ] && for i in $SCL
do
if [ 0$i -ge $MIN -a 0$i -le $MAX ]; then
echo -n "$(date +%X) scl$i "
- mock -q --configdir=$mocketc --uniqueext=$(uuidgen) -r ${DIST}scl${i} rebuild $SRPM "$@" && echo " Ok." || echo " Error !"
+ mock -q --configdir=$mocketc --uniqueext=$ID -r ${DIST}scl${i} rebuild $SRPM "$@" && echo " Ok." || echo " Error !"
fi
done
date +%X