summaryrefslogtreecommitdiff
path: root/apt-pkg/pkgcache.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2008-09-23 16:45:34 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2008-09-23 16:45:34 +0200
commitd3eeb2324df154dc2104bbbb98c36d97db69617e (patch)
tree7da5c4d11f32ab195035a2d40790cddb1a4f36c1 /apt-pkg/pkgcache.cc
parentc37f3bb687fdd76e173d4e770ec2ef49e93ef852 (diff)
* apt-pkg/pkgcachegen.cc:
- do not add multiple identical descriptions for the same language (closes: #400768)
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 133899a27..8eb62089a 100644
--- a/apt-pkg/pkgcache.cc
+++ b/apt-pkg/pkgcache.cc
@@ -622,7 +622,8 @@ pkgCache::DescIterator pkgCache::VerIterator::TranslatedDescription() const
for (; Desc.end() == false; Desc++)
if (pkgIndexFile::LanguageCode() == Desc.LanguageCode())
break;
- if (Desc.end() == true) Desc = DescDefault;
+ if (Desc.end() == true)
+ Desc = DescDefault;
return Desc;
};