]> git.saurik.com Git - apt.git/commitdiff
show in the debug output if we are looping in the avoid breaks
authorDavid Kalnischkies <kalnischkies@gmail.com>
Sat, 3 Mar 2012 09:08:19 +0000 (10:08 +0100)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Sat, 3 Mar 2012 09:08:19 +0000 (10:08 +0100)
apt-pkg/packagemanager.cc

index 42473341c4e78d4e5d7a876f668dc6f11208cffa..2738a8a6b7479c4a293aea28b277a1f1d0455385 100644 (file)
@@ -698,7 +698,12 @@ bool pkgPackageManager::SmartUnPack(PkgIterator Pkg, bool const Immediate, int c
                  // Found a break, so unpack the package,
                  // but do not set loop if another SmartUnPack already deals with it
                  if (Debug)
-                    cout << OutputInDepth(Depth) << "  Unpacking " << BrokenPkg.Name() << " to avoid " << End << endl;
+                 {
+                    cout << OutputInDepth(Depth) << "  Unpacking " << BrokenPkg.Name() << " to avoid " << End;
+                    if (PkgLoop == true)
+                       cout << " (Looping)";
+                    cout << std::endl;
+                 }
                  if (PkgLoop == false)
                     List->Flag(Pkg,pkgOrderList::Loop);
                  SmartUnPack(BrokenPkg, false, Depth + 1);