]> git.saurik.com Git - apt.git/commitdiff
apt-private/private-show.cc: do not show Description-lang: header, the user probably...
authorMichael Vogt <mvo@debian.org>
Thu, 16 Jan 2014 17:26:07 +0000 (18:26 +0100)
committerMichael Vogt <mvo@debian.org>
Thu, 16 Jan 2014 17:26:07 +0000 (18:26 +0100)
apt-private/private-show.cc

index ddc75dbeb479520eed3fdff47a4f4d190958b003..0aa42ecce9e550d9bf001d5229d2b54f81805e0c 100644 (file)
@@ -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)