Просмотр исходного кода

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>

Andreas Oberritter лет назад: 12
Родитель
Сommit
cfefaf6c4a
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      apt-private/private-list.cc

+ 1 - 2
apt-private/private-list.cc

@@ -93,7 +93,6 @@ static void ListAllVersions(pkgCacheFile &CacheFile, pkgRecords &records,/*{{{*/
         Ver.end() == false; ++Ver)
         Ver.end() == false; ++Ver)
    {
    {
       ListSingleVersion(CacheFile, records, Ver, outs, include_summary);
       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)
    // FIXME: SORT! and make sorting flexible (alphabetic, by pkg status)
    // output the sorted map
    // output the sorted map
    for (K = output_map.begin(); K != output_map.end(); ++K)
    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
    // be nice and tell the user if there is more to see