add ability to build/install more than one queuefile from cli, e.g. $ sbopkg -b 'queue1 queue2'

This commit is contained in:
chess.griffin 2009-05-22 20:16:30 +00:00
parent 0dd4a6a668
commit 4a88fc9f65

View File

@ -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