diff options
author | Michael Vogt <mvo@debian.org> | 2014-01-06 07:51:45 +0100 |
---|---|---|
committer | Michael Vogt <mvo@debian.org> | 2014-01-06 07:51:45 +0100 |
commit | 1b4560fec66a6e7b2dff9aaa19095fb8423f69a0 (patch) | |
tree | 7fb2b63e31f356ef87af4699ba87b4f1443f508c /apt-private/private-list.cc | |
parent | 81d183681aea972fddd453d62109f8ccda3f447a (diff) | |
parent | 74d4bb26e09146b9d5f01889a676dc58ff5d63cd (diff) |
Merge branch 'debian/sid' into feature/apt-manpage
Diffstat (limited to 'apt-private/private-list.cc')
-rw-r--r-- | apt-private/private-list.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/apt-private/private-list.cc b/apt-private/private-list.cc index 8c61fcae8..a02ebf02d 100644 --- a/apt-private/private-list.cc +++ b/apt-private/private-list.cc @@ -69,7 +69,7 @@ class PackageNameMatcher : public Matcher /*{{{*/ cachefilter = new APT::CacheFilter::PackageNameMatchesFnmatch(pattern); #else APT::CacheFilter::PackageMatcher *cachefilter = NULL; - if(_config->FindB("APT::Cmd::UseRegexp", false) == true) + if(_config->FindB("APT::Cmd::Use-Regexp", false) == true) cachefilter = new APT::CacheFilter::PackageNameMatchesRegEx(pattern); else cachefilter = new APT::CacheFilter::PackageNameMatchesFnmatch(pattern); @@ -132,6 +132,8 @@ bool List(CommandLine &Cmd) std::map<std::string, std::string> output_map; std::map<std::string, std::string>::const_iterator K; + bool includeSummary = _config->FindB("APT::Cmd::List-Include-Summary"); + PackageNameMatcher matcher(patterns); LocalitySortedVersionSet bag; OpTextProgress progress; @@ -143,13 +145,13 @@ bool List(CommandLine &Cmd) for (LocalitySortedVersionSet::iterator V = bag.begin(); V != bag.end(); V++) { std::stringstream outs; - if(_config->FindB("APT::Cmd::AllVersions", false) == true) + if(_config->FindB("APT::Cmd::All-Versions", false) == true) { ListAllVersions(CacheFile, records, V.ParentPkg(), outs); output_map.insert(std::make_pair<std::string, std::string>( V.ParentPkg().Name(), outs.str())); } else { - ListSingleVersion(CacheFile, records, V, outs); + ListSingleVersion(CacheFile, records, V, outs, includeSummary); output_map.insert(std::make_pair<std::string, std::string>( V.ParentPkg().Name(), outs.str())); } |