mirror of
https://github.com/sbopkg/sbopkg
synced 2024-11-10 03:50:33 +03:00
add ability to build/install more than one queuefile from cli, e.g. $ sbopkg -b 'queue1 queue2'
This commit is contained in:
parent
0dd4a6a668
commit
4a88fc9f65
@ -3626,7 +3626,7 @@ else
|
||||
else
|
||||
if [[ -r $QUEUEDIR/$PKGBUILD.sboq ]]; then
|
||||
# Add an entire queue
|
||||
cp $QUEUEDIR/$PKGBUILD.sboq $CLIQUEUE
|
||||
cat $QUEUEDIR/$PKGBUILD.sboq >> $CLIQUEUE
|
||||
else
|
||||
if search_package $PKGBUILD; then
|
||||
# Add a single package
|
||||
@ -3646,9 +3646,16 @@ else
|
||||
fi
|
||||
# Reading from $CLIQUEUE...
|
||||
while read PICK; do
|
||||
if can_skip_line $PICK; then
|
||||
continue
|
||||
fi
|
||||
PICK_NAME=${PICK%% *}
|
||||
if ! grep -qx $PICK_NAME $SBOPKGTMP/sbopkg-start-queue; then
|
||||
echo $PICK_NAME >> $SBOPKGTMP/sbopkg-start-queue
|
||||
if [[ ${PICK_NAME:0:1} == "-" ]]; then
|
||||
continue
|
||||
else
|
||||
if ! grep -qx $PICK_NAME $SBOPKGTMP/sbopkg-start-queue; then
|
||||
echo $PICK_NAME >> $SBOPKGTMP/sbopkg-start-queue
|
||||
fi
|
||||
fi
|
||||
done < $CLIQUEUE
|
||||
rm -f $CLIQUEUE
|
||||
|
Loading…
Reference in New Issue
Block a user