summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2013-03-12 23:47:48 +0100
committerDavid Kalnischkies <kalnischkies@gmail.com>2013-03-12 23:47:48 +0100
commit734b7c817a54e2717bc9124a691be532d881a65b (patch)
tree13de243bb22c21db699022cc2068924b59c4b020
parenta65e22c64a9312dec90264b4059424dbe2290d7b (diff)
downloadapt-734b7c817a54e2717bc9124a691be532d881a65b.tar.gz
handle language tags for descriptions are unique strings to be shared
-rw-r--r--apt-pkg/pkgcachegen.cc2
-rw-r--r--debian/changelog1
2 files changed, 2 insertions, 1 deletions
diff --git a/apt-pkg/pkgcachegen.cc b/apt-pkg/pkgcachegen.cc
index 2f05310c..d14a7af1 100644
--- a/apt-pkg/pkgcachegen.cc
+++ b/apt-pkg/pkgcachegen.cc
@@ -833,7 +833,7 @@ map_ptrloc pkgCacheGenerator::NewDescription(pkgCache::DescIterator &Desc,
// Fill it in
Desc = pkgCache::DescIterator(Cache,Cache.DescP + Description);
Desc->ID = Cache.HeaderP->DescriptionCount++;
- map_ptrloc const idxlanguage_code = WriteStringInMap(Lang);
+ map_ptrloc const idxlanguage_code = WriteUniqString(Lang);
if (unlikely(idxlanguage_code == 0))
return 0;
Desc->language_code = idxlanguage_code;
diff --git a/debian/changelog b/debian/changelog
index 58cff682..9578ec8f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,7 @@ apt (0.9.7.8~exp2+nmu1) UNRELEASED; urgency=low
* apt-pkg/pkgcachegen.cc:
- do not store the MD5Sum for every description language variant as
it will be the same for all so it can be shared to save cache space
+ - handle language tags for descriptions are unique strings to be shared
-- David Kalnischkies <kalnischkies@gmail.com> Sun, 10 Mar 2013 12:23:24 +0100