From 5f5a7c498a62e32206600a2545480f356f1bce1f Mon Sep 17 00:00:00 2001 From: "chess.griffin" Date: Tue, 23 Jun 2009 13:52:22 +0000 Subject: [PATCH] make the 'check for updates' and 'check for obsolete sources' progressbars display consistent text. --- src/usr/sbin/sbopkg | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/usr/sbin/sbopkg b/src/usr/sbin/sbopkg index 96e5fa9..d421c31 100755 --- a/src/usr/sbin/sbopkg +++ b/src/usr/sbin/sbopkg @@ -707,9 +707,8 @@ check_for_updates() { (( PROGRESSCOUNTER += 1 )) echo $(($PROGRESSCOUNTER * 100 / $NUMPKGS)) done - } | progressbar "Building list of potential updates" "This may take\ - a few moments depending on how many packages from the $REPO_DESC\ - are installed..." + } | progressbar "Checking for potential updates" "This may take\ + a few moments. Press to abort." echo >> $UPDATELIST echo "Potential update list complete." >> $UPDATELIST fi @@ -2615,8 +2614,8 @@ remove_obsoleted_sources() { echo $(($PROGRESS * 100 / $NUMINFO)) done sed -i "$REGEX" $SOURCES - } | progressbar "Searching obsolete sources" \ - "This may take a while, so please be patient..." + } | progressbar "Checking for obsolete sources" \ + "This may take a few moments. Press to abort." if [[ -f $PROGRESSBAR_INTERRUPTED ]]; then rm -f $PROGRESSBAR_INTERRUPTED $SOURCES