summaryrefslogtreecommitdiff
path: root/apt-pkg/deb/deblistparser.cc
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2011-11-03 09:41:14 -0500
committerDavid Kalnischkies <kalnischkies@gmail.com>2011-11-03 09:41:14 -0500
commit04340db392f14e2610189db6f8787e10fbf3c6d0 (patch)
treeb0769df88e2b6496f23e3d899aeb1c240a3488d9 /apt-pkg/deb/deblistparser.cc
parentd9f6c79566a94cf4da20d55edececcaa11ffaa1b (diff)
* apt-pkg/deb/deblistparser.cc:
- M-A: foreign packages provide for other archs, too
Diffstat (limited to 'apt-pkg/deb/deblistparser.cc')
-rw-r--r--apt-pkg/deb/deblistparser.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/apt-pkg/deb/deblistparser.cc b/apt-pkg/deb/deblistparser.cc
index fd3e4808d..28568d5e3 100644
--- a/apt-pkg/deb/deblistparser.cc
+++ b/apt-pkg/deb/deblistparser.cc
@@ -675,6 +675,9 @@ bool debListParser::ParseProvides(pkgCache::VerIterator &Ver)
return _error->Error("Problem parsing Provides line");
if (Op != pkgCache::Dep::NoOp) {
_error->Warning("Ignoring Provides line with DepCompareOp for package %s", Package.c_str());
+ } else if ((Ver->MultiArch & pkgCache::Version::Foreign) == pkgCache::Version::Foreign) {
+ if (NewProvidesAllArch(Ver, Package, Version) == false)
+ return false;
} else {
if (NewProvides(Ver, Package, Arch, Version) == false)
return false;