From b37acfa22382605f3fdc09dda77ec432e0771467 Mon Sep 17 00:00:00 2001 From: "mauro.giachero" Date: Tue, 3 Mar 2009 08:49:49 +0000 Subject: [PATCH] check_for_latest(): cleanup and fixlet. Remove some useless code from check_for_latest(), and fix the reported download folder. Thanks to David Somero for reporting and fixing the bogus printout. Signed-off-by: Mauro Giachero --- src/usr/bin/sbopkg | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/usr/bin/sbopkg b/src/usr/bin/sbopkg index 33887c2..cb0375d 100755 --- a/src/usr/bin/sbopkg +++ b/src/usr/bin/sbopkg @@ -2639,7 +2639,7 @@ check_for_latest () { download the update package or press (N)o to quit.")" fi fi - elif [ "$CVRS" == "$NVRS" ]; then + else MSG="It appears your version of sbopkg is up to date." fi if [ "$DIAG" = 1 ]; then @@ -2651,9 +2651,6 @@ check_for_latest () { return 0 fi if [ "$SBOPKGUP" = 1 ]; then - NEWPKG=http://www.sbopkg.org/pkg.php - NEWSBOPKG=$(wget -T 10 -q -O - ${NEWPKG}) - NEWDLPKG=http://sbopkg.googlecode.com/files/$NEWSBOPKG dialog --title "Download new package?" --yesno "$(crunch "Would \ you like to download the new sbopkg \ package:\n\n$NEWSBOPKG\n\nThe new sbopkg package will saved \ @@ -2690,7 +2687,7 @@ check_for_latest () { echo "######################################################" echo "Download complete. The downloaded file is located at:" echo - echo "$TMP/$NEWSBOPKG" + echo "$OUTPUT/$NEWSBOPKG" echo echo "You can now quit sbopkg and upgrade sbopkg manually." echo