From 30155b7ff5ff1a9bd960d7e67a1de974102c2cc2 Mon Sep 17 00:00:00 2001 From: "chess.griffin" Date: Fri, 30 Jan 2009 04:34:45 +0000 Subject: [PATCH] fix issue where user would be told each individual update was added to the queue as it was added; also fix bug where sometimes search results would be duplicated in the search results dialog; thanks to Phillip Warner for both bug reports. --- src/usr/bin/sbopkg | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/usr/bin/sbopkg b/src/usr/bin/sbopkg index 3b91329..2e230f0 100755 --- a/src/usr/bin/sbopkg +++ b/src/usr/bin/sbopkg @@ -1187,7 +1187,8 @@ add_item_to_queue () { # Only display this if we are not loading a queue; otherwise getting this # after each app was added to the queue may get annoying. if [[ ! -e $TMP/sbopkg_user_queue.lck && \ - ! -e $TMP/sbopkg_backup_queue.lck ]]; then + ! -e $TMP/sbopkg_backup_queue.lck && \ + ! -e $TMP/sbopkg-update-queue ]]; then dialog --title "Done" --msgbox "$(crunch "$APP has been added to \ the build queue.")" 8 40 fi @@ -2414,7 +2415,9 @@ main_menu () { "Updates") main_updates ;; "Browse") browse_categories rm -f $TMP/sbopkg_return_main_menu ;; - "Search") main_search ;; + "Search") main_search + rm -f $TMP/sbopkg_search_* + rm -f $TMP/sbopkg_return_main_menu ;; "Utilities") utilities_menu ;; "Queue") queue_menu ;; *) # "Exit", or an empty string if Exit, instead of Ok,