summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2010-09-24 14:18:52 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2010-09-24 14:18:52 +0200
commitdd21adb85a810125230cbc29d8bc413fe337f96c (patch)
tree98ec2ea4550c99b2b4f37e82f152df07e0f1c341
parentffde0f7df221d65c698907066591ea425e0b1339 (diff)
* cmdline/apt-cache.cc:
- use the TranslatedDescription for searching and not the first available one as it is maybe not an expected language (Closes: #597925)
-rw-r--r--cmdline/apt-cache.cc4
-rw-r--r--debian/changelog9
2 files changed, 11 insertions, 2 deletions
diff --git a/cmdline/apt-cache.cc b/cmdline/apt-cache.cc
index ba4ad1943..79654f477 100644
--- a/cmdline/apt-cache.cc
+++ b/cmdline/apt-cache.cc
@@ -1321,7 +1321,7 @@ bool Search(CommandLine &CmdL)
continue;
pkgCache::VerIterator V = Plcy->GetCandidateVer(P);
if (V.end() == false)
- DFList[G->ID].Df = V.DescriptionList().FileList();
+ DFList[G->ID].Df = V.TranslatedDescription().FileList();
if (DFList[G->ID].NameMatch == false)
continue;
@@ -1334,7 +1334,7 @@ bool Search(CommandLine &CmdL)
continue;
unsigned long id = Prv.OwnerPkg().Group()->ID;
- DFList[id].Df = V.DescriptionList().FileList();
+ DFList[id].Df = V.TranslatedDescription().FileList();
DFList[id].NameMatch = true;
}
}
diff --git a/debian/changelog b/debian/changelog
index 6a1e0389c..7f3ccb624 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,12 @@
+apt (0.8.6) UNRELEASED; urgency=low
+
+ [ David Kalnischkies ]
+ * cmdline/apt-cache.cc:
+ - use the TranslatedDescription for searching and not the first
+ available one as it is maybe not an expected language (Closes: #597925)
+
+ -- David Kalnischkies <kalnischkies@gmail.com> Fri, 24 Sep 2010 14:11:52 +0200
+
apt (0.8.5) unstable; urgency=low
[ Manpages translations ]