Kaynağa Gözat

handle language tags for descriptions are unique strings to be shared

David Kalnischkies 13 yıl önce
ebeveyn
işleme
734b7c817a
2 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. 1 1
      apt-pkg/pkgcachegen.cc
  2. 1 0
      debian/changelog

+ 1 - 1
apt-pkg/pkgcachegen.cc

@@ -833,7 +833,7 @@ map_ptrloc pkgCacheGenerator::NewDescription(pkgCache::DescIterator &Desc,
    // Fill it in
    // Fill it in
    Desc = pkgCache::DescIterator(Cache,Cache.DescP + Description);
    Desc = pkgCache::DescIterator(Cache,Cache.DescP + Description);
    Desc->ID = Cache.HeaderP->DescriptionCount++;
    Desc->ID = Cache.HeaderP->DescriptionCount++;
-   map_ptrloc const idxlanguage_code = WriteStringInMap(Lang);
+   map_ptrloc const idxlanguage_code = WriteUniqString(Lang);
    if (unlikely(idxlanguage_code == 0))
    if (unlikely(idxlanguage_code == 0))
       return 0;
       return 0;
    Desc->language_code = idxlanguage_code;
    Desc->language_code = idxlanguage_code;

+ 1 - 0
debian/changelog

@@ -5,6 +5,7 @@ apt (0.9.7.8~exp2+nmu1) UNRELEASED; urgency=low
   * apt-pkg/pkgcachegen.cc:
   * apt-pkg/pkgcachegen.cc:
     - do not store the MD5Sum for every description language variant as
     - 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
       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
  -- David Kalnischkies <kalnischkies@gmail.com>  Sun, 10 Mar 2013 12:23:24 +0100