summaryrefslogtreecommitdiff
path: root/cmdline/apt-cache.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2005-05-10 12:03:48 +0000
committerMichael Vogt <michael.vogt@ubuntu.com>2005-05-10 12:03:48 +0000
commit50d50da8fcb1652230edc3bc7901504914b58183 (patch)
treefddd9c4814dbbb0e64726dbb739ca9a08a9f7019 /cmdline/apt-cache.cc
parentf3657a2f75381354a75cde84bc6fd54b91227340 (diff)
* apt-cache show <virtual-pkg> shows all virtual packages instead of nothing (thanks to otavio)
Diffstat (limited to 'cmdline/apt-cache.cc')
-rw-r--r--cmdline/apt-cache.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/cmdline/apt-cache.cc b/cmdline/apt-cache.cc
index 0014563b8..3bd1435fc 100644
--- a/cmdline/apt-cache.cc
+++ b/cmdline/apt-cache.cc
@@ -1360,6 +1360,20 @@ bool ShowPackage(CommandLine &CmdL)
++found;
+ // Show virtual packages
+ if (Pkg->ProvidesList != 0)
+ {
+ ioprintf(std::cout,_("Package %s is a virtual package provided by:\n"),
+ Pkg.Name());
+
+ pkgCache::PrvIterator I = Pkg.ProvidesList();
+ for (; I.end() == false; I++)
+ cout << " " << I.OwnerPkg().Name() << endl;
+ cout << _("You should explicitly select one to show.") << endl;
+ continue;
+ }
+
+
// Find the proper version to use.
if (_config->FindB("APT::Cache::AllVersions","true") == true)
{