]> git.saurik.com Git - apt.git/commitdiff
hide first pdiff merge failure debug message
authorDavid Kalnischkies <david@kalnischkies.de>
Thu, 16 Apr 2015 09:01:37 +0000 (11:01 +0200)
committerJulian Andres Klode <jak@debian.org>
Thu, 27 Aug 2015 17:50:19 +0000 (19:50 +0200)
The siblings of this message are all guarded as debug messages, just this
one had it missing and subsequently causes display issues if triggered,
which, given that clog is an alias for cerr, end up on stderr and
therefore are reported as problems by tools only showing the stderr
like our own cron script.

[Backport of f4c7a238f4c29ac9b1e1172f103ab7dec5c5807d]

Closes: 793444
apt-pkg/acquire-item.cc

index 0bcafdc5c7eee0d65ddd1022335c899f57f54b6c..3d911a959113023ddecca917311de86257ee56ef 100644 (file)
@@ -834,7 +834,8 @@ void pkgAcqIndexMergeDiffs::Failed(string Message,pkgAcquire::MethodConfig * /*C
 
    // first failure means we should fallback
    State = StateErrorDiff;
-   std::clog << "Falling back to normal index file acquire" << std::endl;
+   if (Debug)
+      std::clog << "Falling back to normal index file acquire" << std::endl;
    new pkgAcqIndex(Owner, RealURI, Description,Desc.ShortDesc,
                   ExpectedHash);
 }