diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-09-04 23:59:13 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-09-04 23:59:13 -0700 |
commit | 738ee08c420b5b9229b48595b7acd9e4dd470e74 (patch) | |
tree | 693fcbabc0cd8087f2b25782dd858e345b90ae1b | |
parent | a5663a3fdc594c403452048b2c96fec33b0b8f9d (diff) | |
download | portage-738ee08c420b5b9229b48595b7acd9e4dd470e74.tar.gz portage-738ee08c420b5b9229b48595b7acd9e4dd470e74.tar.bz2 portage-738ee08c420b5b9229b48595b7acd9e4dd470e74.zip |
In show_invalid_depstring_notice(), use normal Package attributes
instead of the old Task.__getitem__() approach that relies on
the values inside the hash key.
-rw-r--r-- | pym/_emerge/show_invalid_depstring_notice.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pym/_emerge/show_invalid_depstring_notice.py b/pym/_emerge/show_invalid_depstring_notice.py index 02fba03d0..6ab7727f0 100644 --- a/pym/_emerge/show_invalid_depstring_notice.py +++ b/pym/_emerge/show_invalid_depstring_notice.py @@ -11,9 +11,9 @@ def show_invalid_depstring_notice(parent_node, depstring, error_msg): msg1 = "\n\n!!! Invalid or corrupt dependency specification: " + \ "\n\n%s\n\n%s\n\n" % (error_msg, parent_node) - p_type = parent_node[0] - p_key = parent_node[2] - p_status = parent_node[3] + p_type = parent_node.type_name + p_key = parent_node.cpv + p_status = parent_node.operation msg = [] if p_status == "nomerge": category, pf = portage.catsplit(p_key) |