summaryrefslogtreecommitdiff
path: root/apt-private/private-search.cc
diff options
context:
space:
mode:
Diffstat (limited to 'apt-private/private-search.cc')
-rw-r--r--apt-private/private-search.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/apt-private/private-search.cc b/apt-private/private-search.cc
index 2d427fa25..5e12902e8 100644
--- a/apt-private/private-search.cc
+++ b/apt-private/private-search.cc
@@ -69,6 +69,13 @@ bool FullTextSearch(CommandLine &CmdL) /*{{{*/
progress.OverallProgress(50, 100, 50, _("Full Text Search"));
progress.SubProgress(bag.size());
pkgRecords records(CacheFile);
+
+ std::string format = "${color:highlight}${Package}${color:neutral}/${Origin} ${Version} ${Architecture}${ }${apt:Status}\n";
+ if (_config->FindB("APT::Cache::ShowFull",false) == false)
+ format += " ${Description}\n";
+ else
+ format += " ${LongDescription}\n";
+
int Done = 0;
for ( ;V != bag.end(); ++V)
{
@@ -100,7 +107,7 @@ bool FullTextSearch(CommandLine &CmdL) /*{{{*/
if (all_found == true)
{
std::stringstream outs;
- ListSingleVersion(CacheFile, records, V, outs);
+ ListSingleVersion(CacheFile, records, V, outs, format);
output_map.insert(std::make_pair<std::string, std::string>(
PkgName, outs.str()));
}