From cfefaf6c4a27bbd5bfdad67e482f4b01506f5bd5 Mon Sep 17 00:00:00 2001 From: Andreas Oberritter Date: Thu, 28 Aug 2014 15:04:20 -0700 Subject: 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 --- apt-private/private-list.cc | 3 +-- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3