summaryrefslogtreecommitdiff
path: root/cmdline/apt-cache.cc
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2010-06-05 13:42:04 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2010-06-05 13:42:04 +0200
commit292f5b8770a0f10d8a19204dc4a914437d861662 (patch)
treef0bdd8b694afb4a9700052ee4cf2876433cec533 /cmdline/apt-cache.cc
parentc45f2d1995a58c7a5a8616c6fbf9f95ee4ccfd49 (diff)
apt-cache show --no-all-versions should issues the Candidate
Diffstat (limited to 'cmdline/apt-cache.cc')
-rw-r--r--cmdline/apt-cache.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmdline/apt-cache.cc b/cmdline/apt-cache.cc
index e3876d5e0..b782c70af 100644
--- a/cmdline/apt-cache.cc
+++ b/cmdline/apt-cache.cc
@@ -1456,7 +1456,7 @@ bool ShowPackage(CommandLine &CmdL)
{
pkgCacheFile CacheFile;
APT::VersionSet::Version const select = _config->FindB("APT::Cache::AllVersions", true) ?
- APT::VersionSet::ALL : APT::VersionSet::INSTALLED;
+ APT::VersionSet::ALL : APT::VersionSet::CANDIDATE;
APT::VersionSet const verset = APT::VersionSet::FromCommandLine(CacheFile, CmdL.FileList + 1, select);
for (APT::VersionSet::const_iterator Ver = verset.begin(); Ver != verset.end(); ++Ver)
if (DisplayRecord(CacheFile, Ver) == false)