]> git.saurik.com Git - apt.git/commitdiff
show output as documented for APT::Periodic::Verbose 2
authorPaul Wise <pabs@debian.org>
Fri, 25 Nov 2016 09:53:10 +0000 (10:53 +0100)
committerDavid Kalnischkies <david@kalnischkies.de>
Fri, 25 Nov 2016 12:05:44 +0000 (13:05 +0100)
The documentation of APT::Periodic::Verbose doesn't match the code,
specifically level 2 should apply some things differently to level 1
but does not because it uses `-le 2` instead of `-lt 2` or `-le 1`.

Closes: 845599
debian/apt.systemd.daily

index d034d8c1a3024c1cbd5c614269172251e7ffd7ee..03d41bae5e3b332e7400b55923f43702f27e16a5 100755 (executable)
@@ -320,8 +320,8 @@ fi
 VERBOSE=0
 eval $(apt-config shell VERBOSE APT::Periodic::Verbose)
 debug_echo "verbose level $VERBOSE"
-if [ "$VERBOSE" -le 2 ]; then
-    # quiet for 0,1,2
+if [ "$VERBOSE" -le 1 ]; then
+    # quiet for 0/1
     XSTDOUT=">/dev/null"
     XSTDERR="2>/dev/null"
     XAPTOPT="-qq"