aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2015-02-28 19:17:54 -0800
committerZac Medico <zmedico@gentoo.org>2015-03-03 13:27:18 -0800
commit27eecce94b4e897f13d9f4bae129db37368895c9 (patch)
treea792f0f673ef88a4c78ec8f6ce0cba472ad51ad2
parentmake.conf: expand PORTAGE_CONFIGROOT (bug 511806) (diff)
downloadportage-27eecce94b4e897f13d9f4bae129db37368895c9.tar.gz
portage-27eecce94b4e897f13d9f4bae129db37368895c9.tar.bz2
portage-27eecce94b4e897f13d9f4bae129db37368895c9.zip
depgraph: fix 'operation' AttributeError (bug 541754)
Since commit 4f5e4f697e2593df164fc9864893768f7d2375fc, this faulty code has gone unreported because it's only triggered by invalid dependencies in /var/db/pkg. Fixes: 4f5e4f697e25 ("Use Package instance attributes to clean up and simplify depgraph.validate_blockers().") X-Gentoo-Bug: 541754 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=541754 Acked-by: Brian Dolbec <dolsen@gentoo.org>
-rw-r--r--pym/_emerge/depgraph.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py
index e8a311032..37292a659 100644
--- a/pym/_emerge/depgraph.py
+++ b/pym/_emerge/depgraph.py
@@ -6595,7 +6595,7 @@ class depgraph(object):
if not success:
replacement_pkgs = self._dynamic_config._package_tracker.match(
myroot, pkg.slot_atom)
- if any(replacement_pkg[0].operation == "merge" for \
+ if any(replacement_pkg.operation == "merge" for
replacement_pkg in replacement_pkgs):
# This package is being replaced anyway, so
# ignore invalid dependencies so as not to