make the 'check for updates' and 'check for obsolete sources' progressbars display consistent text.

This commit is contained in:
chess.griffin 2009-06-23 13:52:22 +00:00
parent 9aa419ab02
commit 5f5a7c498a

View file

@ -707,9 +707,8 @@ check_for_updates() {
(( PROGRESSCOUNTER += 1 )) (( PROGRESSCOUNTER += 1 ))
echo $(($PROGRESSCOUNTER * 100 / $NUMPKGS)) echo $(($PROGRESSCOUNTER * 100 / $NUMPKGS))
done done
} | progressbar "Building list of potential updates" "This may take\ } | progressbar "Checking for potential updates" "This may take\
a few moments depending on how many packages from the $REPO_DESC\ a few moments. Press <ESC> to abort."
are installed..."
echo >> $UPDATELIST echo >> $UPDATELIST
echo "Potential update list complete." >> $UPDATELIST echo "Potential update list complete." >> $UPDATELIST
fi fi
@ -2615,8 +2614,8 @@ remove_obsoleted_sources() {
echo $(($PROGRESS * 100 / $NUMINFO)) echo $(($PROGRESS * 100 / $NUMINFO))
done done
sed -i "$REGEX" $SOURCES sed -i "$REGEX" $SOURCES
} | progressbar "Searching obsolete sources" \ } | progressbar "Checking for obsolete sources" \
"This may take a while, so please be patient..." "This may take a few moments. Press <ESC> to abort."
if [[ -f $PROGRESSBAR_INTERRUPTED ]]; then if [[ -f $PROGRESSBAR_INTERRUPTED ]]; then
rm -f $PROGRESSBAR_INTERRUPTED $SOURCES rm -f $PROGRESSBAR_INTERRUPTED $SOURCES