summaryrefslogtreecommitdiff
path: root/apt-pkg/deb
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2010-02-14 22:24:55 +0100
committerDavid Kalnischkies <kalnischkies@gmail.com>2010-02-14 22:24:55 +0100
commitee60a63480f7d1a963d7ef2a8e399d0f9b651d71 (patch)
tree569fe2a8a0e7ed4353982f0dc0e017e89422a776 /apt-pkg/deb
parent584fb392715b4e6f6c08b0c59352b1c20de8ff99 (diff)
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.
Diffstat (limited to 'apt-pkg/deb')
-rw-r--r--apt-pkg/deb/deblistparser.cc3
1 files changed, 2 insertions, 1 deletions
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;