Fix view_queue selection with overlapping names.

Fix view_queue selection with packages whose name is the initial
part of another package name (e.g. "libbonobo" and "libbonoboui").

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
This commit is contained in:
mauro.giachero 2009-01-21 08:33:45 +00:00
parent 97ae2a37a6
commit f2c618b8e9

View File

@ -1348,7 +1348,7 @@ view_queue () {
rm -f $WORKINGQUEUE
cat $TMPQUEUE | while read PICK; do
TESTAPP=$(echo $PICK | cut -f1 -d " ")
if $(cat $TMP/sbopkg-ans-queue | grep -q "^$TESTAPP"); then
if $(cat $TMP/sbopkg-ans-queue | grep -q "^$TESTAPP\$"); then
echo $PICK | sed -e 's/OFF/ON/' >> $WORKINGQUEUE
else
echo $PICK | sed -e 's/ON/OFF/' >> $WORKINGQUEUE