Просмотр исходного кода

debian/apt.cron.daily: Make sure that VERBOSE is always set
before accessing it (Closes: #539366)

Julian Andres Klode лет назад: 17
Родитель
Сommit
6985efb330
2 измененных файлов с 8 добавлено и 3 удалено
  1. 1 3
      debian/apt.cron.daily
  2. 7 0
      debian/changelog

+ 1 - 3
debian/apt.cron.daily

@@ -320,11 +320,9 @@ if ! which apt-config >/dev/null ; then
 fi
 fi
 
 
 # Set VERBOSE mode from  apt-config (or inherit from environment)
 # Set VERBOSE mode from  apt-config (or inherit from environment)
+VERBOSE=0
 eval $(apt-config shell VERBOSE APT::Periodic::Verbose)
 eval $(apt-config shell VERBOSE APT::Periodic::Verbose)
 debug_echo "verbose level $VERBOSE"
 debug_echo "verbose level $VERBOSE"
-if [ -z "$VERBOSE" ]; then
-    VERBOSE="0"
-fi
 if [ "$VERBOSE" -le 2 ]; then
 if [ "$VERBOSE" -le 2 ]; then
     # quiet for 0,1,2
     # quiet for 0,1,2
     XSTDOUT=">/dev/null"
     XSTDOUT=">/dev/null"

+ 7 - 0
debian/changelog

@@ -1,3 +1,10 @@
+apt (0.7.22.2) unstable; urgency=low
+
+  * debian/apt.cron.daily: Make sure that VERBOSE is always set
+    before accessing it (Closes: #539366)
+
+ -- Julian Andres Klode <jak@debian.org>  Thu, 06 Aug 2009 12:07:55 +0200
+
 apt (0.7.22.1) unstable; urgency=low
 apt (0.7.22.1) unstable; urgency=low
 
 
   [ Michael Vogt ]
   [ Michael Vogt ]