From c8f0eb2f64c032956110fb65d7aed5f5573bbede Mon Sep 17 00:00:00 2001 From: slakmagik Date: Thu, 10 Mar 2011 04:18:08 +0000 Subject: [PATCH] another bug in selection_state() Sure seems like I tested this and it worked but I guess I focused on view_queue() and list_packages() at the wrong time. I knew remove_files() (via view_cache_dir()) had a quoted list since source names can include any kind of lunacy, unlike package names, but forgot to allow for it. So allow zero or more dquotes around LINE. --- src/usr/sbin/sbopkg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/usr/sbin/sbopkg b/src/usr/sbin/sbopkg index e296a1e..aaa8f2e 100755 --- a/src/usr/sbin/sbopkg +++ b/src/usr/sbin/sbopkg @@ -460,7 +460,7 @@ selection_state() { sed -i 's/ON$/OFF/' $MENU_FILE while read LINE; do - sed -i "/^$LINE /s/OFF$/ON/" $MENU_FILE + sed -i "/^\"*$LINE\"* /s/OFF$/ON/" $MENU_FILE done < $SELECTION_FILE if [[ $1 == reverse ]]; then