Просмотр исходного кода

* apt-pkg/pkgcache.cc:
- re-evaluate the architectures cache when the cache is (re)opened

Michael Vogt лет назад: 16
Родитель
Сommit
4cbf323fab
2 измененных файлов с 12 добавлено и 1 удалено
  1. 4 1
      apt-pkg/pkgcache.cc
  2. 8 0
      debian/changelog

+ 4 - 1
apt-pkg/pkgcache.cc

@@ -111,7 +111,10 @@ bool pkgCache::Header::CheckSizes(Header &Against) const
 /* */
 pkgCache::pkgCache(MMap *Map, bool DoMap) : Map(*Map)
 {
-   MultiArchEnabled = APT::Configuration::getArchitectures().size() > 1;
+   // call getArchitectures() with cached=false to ensure that the 
+   // architectures cache is re-evaulated. this is needed in cases
+   // when the APT::Architecture field changes between two cache creations
+   MultiArchEnabled = APT::Configuration::getArchitectures(false).size() > 1;
    if (DoMap == true)
       ReMap();
 }

+ 8 - 0
debian/changelog

@@ -1,3 +1,11 @@
+apt (0.7.26~exp13) UNRELEASEDexperimental; urgency=low
+
+  [ Michael Vogt ]
+  * apt-pkg/pkgcache.cc:
+    - re-evaluate the architectures cache when the cache is (re)opened
+
+ -- Michael Vogt <michael.vogt@ubuntu.com>  Fri, 30 Jul 2010 17:37:14 +0200
+
 apt (0.7.26~exp12) experimental; urgency=low
 
   [ Michael Vogt ]