[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[PATCH 1/2] Revert "The following command otherwise yields many blank lines:"



This reverts commit cfefaf6c4a27bbd5bfdad67e482f4b01506f5bd5,
which actually broke output of "apt list" without customized
formats.

Also, the extra whitespace with APT::Cmd::All-Versions=true
might have been intentional, as it groups multiple versions
of the same package.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
---
 apt-private/private-list.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/apt-private/private-list.cc b/apt-private/private-list.cc
index f984565..b690021 100644
--- a/apt-private/private-list.cc
+++ b/apt-private/private-list.cc
@@ -93,6 +93,7 @@ static void ListAllVersions(pkgCacheFile &CacheFile, pkgRecords &records,/*{{{*/
         Ver.end() == false; ++Ver)
    {
       ListSingleVersion(CacheFile, records, Ver, outs, include_summary);
+      outs << "\n";
    }
 }
 									/*}}}*/
@@ -148,7 +149,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::cout << (*K).second << std::endl;
 
 
    // be nice and tell the user if there is more to see
-- 
1.9.1


Reply to: