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

[PATCH] private-list: remove superfluous line breaks in DoList()



From: Andreas Oberritter <obi@opendreambox.org>

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>
---
 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 b690021..f984565 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
-- 
1.9.1


Reply to: