summaryrefslogtreecommitdiff
path: root/cmdline/apt-get.cc
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2011-07-24 19:37:49 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2011-07-24 19:37:49 +0200
commitac32148639b3a35bc359275b9265f41f81e29296 (patch)
treec81e59ff6abd959078cb4434291dd2189ac0bc6c /cmdline/apt-get.cc
parent2baf02ca838e9d7df0a0e9923ffbbb706978ffa4 (diff)
move debug message about attempt install/remove to the responsible method
Diffstat (limited to 'cmdline/apt-get.cc')
-rw-r--r--cmdline/apt-get.cc11
1 files changed, 8 insertions, 3 deletions
diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc
index 80037ae66..b3ce54bb7 100644
--- a/cmdline/apt-get.cc
+++ b/cmdline/apt-get.cc
@@ -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