From: David Kalnischkies Date: Sun, 14 Feb 2010 21:24:55 +0000 (+0100) Subject: Pseudo() doesn't work in the Cache generation step as the check if only X-Git-Tag: 0.8.0~9^2~64^2~20^2~19 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/ee60a63480f7d1a963d7ef2a8e399d0f9b651d71?ds=inline 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. --- diff --git a/apt-pkg/deb/deblistparser.cc b/apt-pkg/deb/deblistparser.cc index bfc0e762e..84eab44a7 100644 --- a/apt-pkg/deb/deblistparser.cc +++ b/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 it is downloaded only one time and installed only one time -- even if 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) return true; - else if (Ver.Pseudo() == true) + else if (multiArch == true) { // our pseudo packages have no size to not confuse the fetcher Ver->Size = 0;