summaryrefslogtreecommitdiff
path: root/cmdline
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2010-06-05 10:17:10 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2010-06-05 10:17:10 +0200
commit0588779fb2139b70f369ccac20fcc0f3a3e9ed47 (patch)
treed3d57c03908eae3b133ef264e8285d0cb528c758 /cmdline
parentd9eb210edda5515ca467eb234dd58b60d43c4513 (diff)
Add a option to apt-cache policy to additionally init the DepCache before
starting to get the package informations. This is useful e.g. for debugging the MultiArchKiller.
Diffstat (limited to 'cmdline')
-rw-r--r--cmdline/apt-cache.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmdline/apt-cache.cc b/cmdline/apt-cache.cc
index 227fda4be..b0e705108 100644
--- a/cmdline/apt-cache.cc
+++ b/cmdline/apt-cache.cc
@@ -1555,6 +1555,12 @@ bool Policy(CommandLine &CmdL)
if (unlikely(Cache == NULL || Plcy == NULL || SrcList == NULL))
return false;
+ /* Should the MultiArchKiller be run to see which pseudo packages for an
+ arch all package are currently installed? Activating it gives a speed
+ penality for no real gain beside enhanced debugging, so in general no. */
+ if (_config->FindB("APT::Cache::Policy::DepCache", false) == true)
+ CacheFile.GetDepCache();
+
// Print out all of the package files
if (CmdL.FileList[1] == 0)
{