]> git.saurik.com Git - apt.git/commitdiff
do not show summary in "apt list"
authorMichael Vogt <mvo@debian.org>
Mon, 25 Nov 2013 15:35:02 +0000 (16:35 +0100)
committerMichael Vogt <mvo@debian.org>
Mon, 25 Nov 2013 15:35:02 +0000 (16:35 +0100)
apt-private/private-list.cc
apt-private/private-output.cc
apt-private/private-output.h

index 8c61fcae8a93f63d35ad976d0858c43e75f12265..6993cd797b020d00de140fb6684fdf349c3aad0f 100644 (file)
@@ -149,7 +149,7 @@ bool List(CommandLine &Cmd)
          output_map.insert(std::make_pair<std::string, std::string>(
             V.ParentPkg().Name(), outs.str()));
       } else {
-         ListSingleVersion(CacheFile, records, V, outs);
+         ListSingleVersion(CacheFile, records, V, outs, false);
          output_map.insert(std::make_pair<std::string, std::string>(
                            V.ParentPkg().Name(), outs.str()));
       }
index 6fadf7274340348da949af1c6cb25188859f1357..91d13f31b8728ec69d07d08f56cb9f6bfdf4338a 100644 (file)
@@ -158,7 +158,8 @@ std::string GetShortDescription(pkgCacheFile &CacheFile, pkgRecords &records, pk
 }
                                                                        /*}}}*/
 void ListSingleVersion(pkgCacheFile &CacheFile, pkgRecords &records,   /*{{{*/
-                       pkgCache::VerIterator V, std::ostream &out)
+                       pkgCache::VerIterator V, std::ostream &out,
+                       bool include_summary)
 {
    pkgCache::PkgIterator P = V.ParentPkg();
 
@@ -224,9 +225,12 @@ void ListSingleVersion(pkgCacheFile &CacheFile, pkgRecords &records,       /*{{{*/
             out << GetVersion(CacheFile, V);
       }
       out << " " << GetArchitecture(CacheFile, P) << " ";
-      out << std::endl 
-                << "    " << GetShortDescription(CacheFile, records, P)
-                << std::endl;
+      if (include_summary)
+      {
+         out << std::endl 
+             << "    " << GetShortDescription(CacheFile, records, P)
+             << std::endl;
+      }
    }
 }
                                                                        /*}}}*/
index 9283e39aba3fc701d028d42b4435d912b8b8da02..c3c76bb92dc24bc27cbceb71e92d60b8e5b0e6d9 100644 (file)
@@ -24,7 +24,8 @@ extern unsigned int ScreenWidth;
 
 bool InitOutput();
 void ListSingleVersion(pkgCacheFile &CacheFile, pkgRecords &records, 
-                       pkgCache::VerIterator V, std::ostream &out);
+                       pkgCache::VerIterator V, std::ostream &out,
+                       bool include_summary=true);