summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2009-08-06 12:12:20 +0200
committerJulian Andres Klode <jak@debian.org>2009-08-06 12:12:20 +0200
commit6985efb330487fb4ceb3fea0b4bfc86010c6d7f8 (patch)
treecacb7247df940d18ebc21b6ef685e921976578a3
parente0423680dc09d64afdc62bf3a756a8ef9849365b (diff)
debian/apt.cron.daily: Make sure that VERBOSE is always set
before accessing it (Closes: #539366)
-rw-r--r--debian/apt.cron.daily4
-rw-r--r--debian/changelog7
2 files changed, 8 insertions, 3 deletions
diff --git a/debian/apt.cron.daily b/debian/apt.cron.daily
index 4f47ccfab..35ee5db6c 100644
--- a/debian/apt.cron.daily
+++ b/debian/apt.cron.daily
@@ -320,11 +320,9 @@ if ! which apt-config >/dev/null ; then
fi
# Set VERBOSE mode from apt-config (or inherit from environment)
+VERBOSE=0
eval $(apt-config shell VERBOSE APT::Periodic::Verbose)
debug_echo "verbose level $VERBOSE"
-if [ -z "$VERBOSE" ]; then
- VERBOSE="0"
-fi
if [ "$VERBOSE" -le 2 ]; then
# quiet for 0,1,2
XSTDOUT=">/dev/null"
diff --git a/debian/changelog b/debian/changelog
index 59d9a0b27..377cc6b57 100644
--- a/debian/changelog
+++ b/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
[ Michael Vogt ]