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.
This commit is contained in:
slakmagik 2011-03-10 04:18:08 +00:00
parent 2429774709
commit c8f0eb2f64

View File

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