From f2c618b8e94693d5818a17132cfb949785ff7672 Mon Sep 17 00:00:00 2001 From: "mauro.giachero" Date: Wed, 21 Jan 2009 08:33:45 +0000 Subject: [PATCH] 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 --- src/usr/bin/sbopkg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/usr/bin/sbopkg b/src/usr/bin/sbopkg index 271d13c..9feb38a 100755 --- a/src/usr/bin/sbopkg +++ b/src/usr/bin/sbopkg @@ -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