summaryrefslogtreecommitdiff
path: root/apt-pkg/deb/deblistparser.cc
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2012-07-09 17:42:25 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2012-07-09 17:42:25 +0200
commitcef094c2ec8214b2783a2ac3aa70cf835381eae1 (patch)
treeccb1c50f0347b5ceed0bf01086228e629875fead /apt-pkg/deb/deblistparser.cc
parent25792e39cf2218f1c9bae74217e4f91682e14837 (diff)
* apt-pkg/deb/deblistparser.cc:
- negative dependencies need to apply to all architectures, but those with a specific architecture only apply to this one
Diffstat (limited to 'apt-pkg/deb/deblistparser.cc')
-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 e93e51af3..12c6ab4c9 100644
--- a/apt-pkg/deb/deblistparser.cc
+++ b/apt-pkg/deb/deblistparser.cc
@@ -635,7 +635,8 @@ bool debListParser::ParseDepends(pkgCache::VerIterator &Ver,
return _error->Error("Problem parsing dependency %s",Tag);
size_t const found = Package.rfind(':');
- if (MultiArchEnabled == true &&
+ // If negative is unspecific it needs to apply on all architectures
+ if (MultiArchEnabled == true && found == string::npos &&
(Type == pkgCache::Dep::Conflicts ||
Type == pkgCache::Dep::DpkgBreaks ||
Type == pkgCache::Dep::Replaces))