mirror of
https://github.com/sbopkg/sbopkg
synced 2025-02-05 08:46:34 +01: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
1 changed files with 10 additions and 3 deletions
|
@ -3626,7 +3626,7 @@ else
|
||||||
else
|
else
|
||||||
if [[ -r $QUEUEDIR/$PKGBUILD.sboq ]]; then
|
if [[ -r $QUEUEDIR/$PKGBUILD.sboq ]]; then
|
||||||
# Add an entire queue
|
# Add an entire queue
|
||||||
cp $QUEUEDIR/$PKGBUILD.sboq $CLIQUEUE
|
cat $QUEUEDIR/$PKGBUILD.sboq >> $CLIQUEUE
|
||||||
else
|
else
|
||||||
if search_package $PKGBUILD; then
|
if search_package $PKGBUILD; then
|
||||||
# Add a single package
|
# Add a single package
|
||||||
|
@ -3646,9 +3646,16 @@ else
|
||||||
fi
|
fi
|
||||||
# Reading from $CLIQUEUE...
|
# Reading from $CLIQUEUE...
|
||||||
while read PICK; do
|
while read PICK; do
|
||||||
|
if can_skip_line $PICK; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
PICK_NAME=${PICK%% *}
|
PICK_NAME=${PICK%% *}
|
||||||
if ! grep -qx $PICK_NAME $SBOPKGTMP/sbopkg-start-queue; then
|
if [[ ${PICK_NAME:0:1} == "-" ]]; then
|
||||||
echo $PICK_NAME >> $SBOPKGTMP/sbopkg-start-queue
|
continue
|
||||||
|
else
|
||||||
|
if ! grep -qx $PICK_NAME $SBOPKGTMP/sbopkg-start-queue; then
|
||||||
|
echo $PICK_NAME >> $SBOPKGTMP/sbopkg-start-queue
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
done < $CLIQUEUE
|
done < $CLIQUEUE
|
||||||
rm -f $CLIQUEUE
|
rm -f $CLIQUEUE
|
||||||
|
|
Loading…
Add table
Reference in a new issue