diff options
author | Michael Vogt <mvo@debian.org> | 2013-11-28 19:45:58 +0100 |
---|---|---|
committer | Michael Vogt <mvo@debian.org> | 2013-11-28 19:45:58 +0100 |
commit | 83ef59c23699ed3cd3dc9d6d907a0d0359ab2fee (patch) | |
tree | 7862d1a16c3a445da31c53c1565c79704b8462d0 /apt-private/private-output.cc | |
parent | c872ac503156caff9d0e33306c4121dd667a6567 (diff) | |
parent | e1dc051a11c2860abebf626df0470a5feb03677a (diff) |
Merge remote-tracking branch 'mvo/feature/short-list' into debian/sid
Diffstat (limited to 'apt-private/private-output.cc')
-rw-r--r-- | apt-private/private-output.cc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/apt-private/private-output.cc b/apt-private/private-output.cc index 6fadf7274..91d13f31b 100644 --- a/apt-private/private-output.cc +++ b/apt-private/private-output.cc @@ -158,7 +158,8 @@ std::string GetShortDescription(pkgCacheFile &CacheFile, pkgRecords &records, pk } /*}}}*/ void ListSingleVersion(pkgCacheFile &CacheFile, pkgRecords &records, /*{{{*/ - pkgCache::VerIterator V, std::ostream &out) + pkgCache::VerIterator V, std::ostream &out, + bool include_summary) { pkgCache::PkgIterator P = V.ParentPkg(); @@ -224,9 +225,12 @@ void ListSingleVersion(pkgCacheFile &CacheFile, pkgRecords &records, /*{{{*/ out << GetVersion(CacheFile, V); } out << " " << GetArchitecture(CacheFile, P) << " "; - out << std::endl - << " " << GetShortDescription(CacheFile, records, P) - << std::endl; + if (include_summary) + { + out << std::endl + << " " << GetShortDescription(CacheFile, records, P) + << std::endl; + } } } /*}}}*/ |