Selaa lähdekoodia

Pseudo() doesn't work in the Cache generation step as the check if only
one package is in the group will generate false positives - as the others
will (maybe) added a little time later in the process.

David Kalnischkies 16 vuotta sitten
vanhempi
commit
ee60a63480
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2 1
      apt-pkg/deb/deblistparser.cc

+ 2 - 1
apt-pkg/deb/deblistparser.cc

@@ -155,9 +155,10 @@ bool debListParser::NewVersion(pkgCache::VerIterator Ver)
 	 to a NOP in the download/install step - this package will ensure that
 	 to a NOP in the download/install step - this package will ensure that
 	 it is downloaded only one time and installed only one time -- even if
 	 it is downloaded only one time and installed only one time -- even if
 	 the architecture bound versions coming in and out on regular basis. */
 	 the architecture bound versions coming in and out on regular basis. */
+      bool const static multiArch = APT::Configuration::getArchitectures().size() > 1;
       if (strcmp(Ver.Arch(true),"all") == 0)
       if (strcmp(Ver.Arch(true),"all") == 0)
 	 return true;
 	 return true;
-      else if (Ver.Pseudo() == true)
+      else if (multiArch == true)
       {
       {
 	 // our pseudo packages have no size to not confuse the fetcher
 	 // our pseudo packages have no size to not confuse the fetcher
 	 Ver->Size = 0;
 	 Ver->Size = 0;