summaryrefslogtreecommitdiff
path: root/apt-private/private-list.cc
diff options
context:
space:
mode:
authorAndreas Oberritter <obi@opendreambox.org>2014-08-28 15:04:20 -0700
committerMichael Vogt <mvo@debian.org>2014-08-28 15:04:20 -0700
commitcfefaf6c4a27bbd5bfdad67e482f4b01506f5bd5 (patch)
tree050602c82ad76b3af1fef5af0ad1d61396b05951 /apt-private/private-list.cc
parent2b24f36b8513c722c9c196f5dcea23051aed8e3a (diff)
The following command otherwise yields many blank lines:
apt list -o APT::Cmd::use-format=true -o APT::Cmd::format=\${Package} And even worse when adding "-o APT::Cmd::All-Versions=true". Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Diffstat (limited to 'apt-private/private-list.cc')
-rw-r--r--apt-private/private-list.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/apt-private/private-list.cc b/apt-private/private-list.cc
index b69002103..f98456576 100644
--- a/apt-private/private-list.cc
+++ b/apt-private/private-list.cc
@@ -93,7 +93,6 @@ static void ListAllVersions(pkgCacheFile &CacheFile, pkgRecords &records,/*{{{*/
Ver.end() == false; ++Ver)
{
ListSingleVersion(CacheFile, records, Ver, outs, include_summary);
- outs << "\n";
}
}
/*}}}*/
@@ -149,7 +148,7 @@ bool DoList(CommandLine &Cmd)
// FIXME: SORT! and make sorting flexible (alphabetic, by pkg status)
// output the sorted map
for (K = output_map.begin(); K != output_map.end(); ++K)
- std::cout << (*K).second << std::endl;
+ std::cout << (*K).second;
// be nice and tell the user if there is more to see