summaryrefslogtreecommitdiff
path: root/debian/apt.cron.daily
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 /debian/apt.cron.daily
parente0423680dc09d64afdc62bf3a756a8ef9849365b (diff)
debian/apt.cron.daily: Make sure that VERBOSE is always set
before accessing it (Closes: #539366)
Diffstat (limited to 'debian/apt.cron.daily')
-rw-r--r--debian/apt.cron.daily4
1 files changed, 1 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"