Selaa lähdekoodia

move debug message about attempt install/remove to the responsible method

David Kalnischkies 15 vuotta sitten
vanhempi
commit
ac32148639
1 muutettua tiedostoa jossa 8 lisäystä ja 3 poistoa
  1. 8 3
      cmdline/apt-get.cc

+ 8 - 3
cmdline/apt-get.cc

@@ -1388,6 +1388,14 @@ bool TryToInstallBuildDep(pkgCache::PkgIterator Pkg,pkgCacheFile &Cache,
 	 return AllowFail;
 	 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)
    if (Remove == true)
    {
    {
       TryToRemove RemoveAction(Cache, &Fix);
       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)
             if (TryToInstallBuildDep(Pkg,Cache,Fix,false,false) == true)
             {
             {
                // We successfully installed something; skip remaining alternatives
                // We successfully installed something; skip remaining alternatives