apt-cache.cc: added APT::Cache::DumpPackages option

This commit is contained in:
Alexey Tourbin 2009-07-13 01:39:26 +04:00
parent e78206f1e5
commit 81c112101f

View File

@ -356,6 +356,7 @@ bool Dump(CommandLine &Cmd)
pkgCache &Cache = *GCache;
cout << "Using Versioning System: " << Cache.VS->Label << endl;
if (_config->FindB("APT::Cache::DumpPackages",true) == true)
for (pkgCache::PkgIterator P = Cache.PkgBegin(); P.end() == false; P++)
{
cout << "Package: " << P.Name() << endl;