From 738ee08c420b5b9229b48595b7acd9e4dd470e74 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 4 Sep 2010 23:59:13 -0700 Subject: 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. --- pym/_emerge/show_invalid_depstring_notice.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pym/_emerge') 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) -- cgit v1.2.3-1-g7c22