summaryrefslogtreecommitdiff
path: root/apt-pkg/pkgcache.cc
diff options
context:
space:
mode:
authoregon <egon@debian-vm>2008-09-23 07:31:23 +0200
committeregon <egon@debian-vm>2008-09-23 07:31:23 +0200
commitc76c44b10a40bc4ae755effad8a53802a6e4952a (patch)
tree8c29f89c30011c161d1c6e7616f12200e3bb6508 /apt-pkg/pkgcache.cc
parent2e1dc5d39ef2f0c0fd05b0d90e746f5be77bec61 (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;
};