summaryrefslogtreecommitdiff
path: root/apt-private/private-show.cc
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2014-01-16 18:26:07 +0100
committerMichael Vogt <mvo@debian.org>2014-01-16 18:26:07 +0100
commit2a79257e96010318c4bc6d2f2e3e9c475e5bf445 (patch)
tree9ce9275e486e1240367453402b2c4e0fd7d528a6 /apt-private/private-show.cc
parent3bdf7da5b40636376699aa8a976aae1b279ef356 (diff)
apt-private/private-show.cc: do not show Description-lang: header, the user probably knows his language (thanks to Donkult)
Diffstat (limited to 'apt-private/private-show.cc')
-rw-r--r--apt-private/private-show.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/apt-private/private-show.cc b/apt-private/private-show.cc
index ddc75dbeb..0aa42ecce 100644
--- a/apt-private/private-show.cc
+++ b/apt-private/private-show.cc
@@ -74,13 +74,12 @@ bool DisplayRecord(pkgCacheFile &CacheFile, pkgCache::VerIterator V,
// write the description
pkgRecords Recs(*Cache);
+ // FIXME: show (optionally) all available translations(?)
pkgCache::DescIterator Desc = V.TranslatedDescription();
if (Desc.end() == false)
{
pkgRecords::Parser &P = Recs.Lookup(Desc.FileList());
- if (strcmp(Desc.LanguageCode(),"") != 0)
- out << "Description-lang: " << Desc.LanguageCode() << std::endl;
- out << "Description" << P.LongDesc();
+ out << "Description: " << P.LongDesc();
}
// write a final newline (after the description)