From 50d50da8fcb1652230edc3bc7901504914b58183 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Tue, 10 May 2005 12:03:48 +0000 Subject: [PATCH] * apt-cache show shows all virtual packages instead of nothing (thanks to otavio) --- cmdline/apt-cache.cc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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) { -- 2.47.2