summaryrefslogtreecommitdiff
path: root/apt-pkg/pkgcache.cc
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2010-08-13 16:42:38 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2010-08-13 16:42:38 +0200
commitf824d95cacb53fc24a775a6a13feb2f8c7ae2ace (patch)
tree29300c90151088fecf86b1707086fa7b8d632f69 /apt-pkg/pkgcache.cc
parent09a10f9cd2661d28b2ff53d59a0936563cfe1cf7 (diff)
* apt-pkg/pkgcache.cc:
- fix LongDesc handling in LANG=C environment
Diffstat (limited to 'apt-pkg/pkgcache.cc')
-rw-r--r--apt-pkg/pkgcache.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/apt-pkg/pkgcache.cc b/apt-pkg/pkgcache.cc
index bb28a33ca..a66a5198d 100644
--- a/apt-pkg/pkgcache.cc
+++ b/apt-pkg/pkgcache.cc
@@ -894,7 +894,8 @@ pkgCache::DescIterator pkgCache::VerIterator::TranslatedDescription() const
pkgCache::DescIterator Desc = DescDefault;
for (; Desc.end() == false; Desc++)
- if (*l == Desc.LanguageCode())
+ if (*l == Desc.LanguageCode() ||
+ (*l == "en" && strcmp(Desc.LanguageCode(),"") == 0))
break;
if (Desc.end() == true)
Desc = DescDefault;