Fix wrong regex in uncheck_installed().

The old regex turned ON into ONOFF. Dialog apparently treats that as
an OFF, so overall the code appeared to work fine. Neverthess, this is
worth a fix.
Spotted by slakmagik.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
This commit is contained in:
mauro.giachero 2009-09-09 17:33:29 +00:00
parent 9641686690
commit d3a02809ea
2 changed files with 3 additions and 1 deletions

View File

@ -3,6 +3,8 @@ Sbopkg 0.XX.X released. This version contains the following fixes and
enhancements:
* Fix typo in 50-default renames file.
* Fix the "Uncheck installed" feature. The code apparently worked fine even
without the fix. Spotted by slakmagik.
* Add $ARCH information in dialog backtitles.
* Add ":force" to sbopkg.conf WGETFLAGS --progress=bar to correctly
display the wget progress bar; thanks to happyslacker for nudging me on

View File

@ -1953,7 +1953,7 @@ uncheck_installed() {
local QUEUEFILE=$1
sed -i 's:^\([^ ]* .*Installed.*\)[^ ]*$:\1OFF:' $QUEUEFILE
sed -i 's:^\([^ ]* .*Installed.* \)[^ ]\+$:\1OFF:' $QUEUEFILE
}
view_queue() {