]> git.saurik.com Git - apt.git/commitdiff
move debug message about attempt install/remove to the responsible method
authorDavid Kalnischkies <kalnischkies@gmail.com>
Sun, 24 Jul 2011 17:37:49 +0000 (19:37 +0200)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Sun, 24 Jul 2011 17:37:49 +0000 (19:37 +0200)
cmdline/apt-get.cc

index 80037ae661c8873e5fbbd523cd4f97eda87bf7d1..b3ce54bb7bdf9ca54cbdf4e5e7bdc110e1b63bf6 100644 (file)
@@ -1388,6 +1388,14 @@ bool TryToInstallBuildDep(pkgCache::PkgIterator Pkg,pkgCacheFile &Cache,
         return AllowFail;
    }
 
+   if (_config->FindB("Debug::BuildDeps",false) == true)
+   {
+      if (Remove == true)
+        cout << "  Trying to remove " << Pkg << endl;
+      else
+        cout << "  Trying to install " << Pkg << endl;
+   }
+
    if (Remove == true)
    {
       TryToRemove RemoveAction(Cache, &Fix);
@@ -2849,9 +2857,6 @@ bool DoBuildDep(CommandLine &CmdL)
               }
            }
 
-            if (_config->FindB("Debug::BuildDeps",false) == true)
-               cout << "  Trying to install " << (*D).Package << endl;
-
             if (TryToInstallBuildDep(Pkg,Cache,Fix,false,false) == true)
             {
                // We successfully installed something; skip remaining alternatives