Просмотр исходного кода

show in the debug output if we are looping in the avoid breaks

David Kalnischkies лет назад: 14
Родитель
Сommit
2264548ff2
1 измененных файлов с 6 добавлено и 1 удалено
  1. 6 1
      apt-pkg/packagemanager.cc

+ 6 - 1
apt-pkg/packagemanager.cc

@@ -698,7 +698,12 @@ bool pkgPackageManager::SmartUnPack(PkgIterator Pkg, bool const Immediate, int c
 		  // Found a break, so unpack the package,
 		  // Found a break, so unpack the package,
 		  // but do not set loop if another SmartUnPack already deals with it
 		  // but do not set loop if another SmartUnPack already deals with it
 		  if (Debug)
 		  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)
 		  if (PkgLoop == false)
 		     List->Flag(Pkg,pkgOrderList::Loop);
 		     List->Flag(Pkg,pkgOrderList::Loop);
 		  SmartUnPack(BrokenPkg, false, Depth + 1);
 		  SmartUnPack(BrokenPkg, false, Depth + 1);