Package: fai-client
Version: 3.2.2
Severity: important
Tags: patch

The logic testing for the availability of the safe-upgrade option of aptitude is
errornous: If grep detects "safe-upgrade", it should be used, not the other way
round. The patch below fixes this.

Best,
Michael

Index: lib/updatebase
===================================================================
--- lib/updatebase      (revision 4788)
+++ lib/updatebase      (working copy)
@@ -33,9 +33,9 @@
 export aptopt=
 # this may be removed in lenny
 if $ROOTCMD aptitude --help | grep -q safe-upgrade; then
+    $ROOTCMD aptitude -y safe-upgrade
+else
     $ROOTCMD aptitude -y upgrade
-else
-    $ROOTCMD aptitude -y safe-upgrade
 fi
 
 $ROOTCMD aptitude $aptopt -f -y dist-upgrade </dev/null

Attachment: pgpAJ2mjMobzL.pgp
Description: PGP signature

Reply via email to