From: Zac Medico Date: Sun, 5 Sep 2010 06:59:13 +0000 (-0700) Subject: In show_invalid_depstring_notice(), use normal Package attributes X-Git-Tag: v2.2_rc76~50 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=738ee08c420b5b9229b48595b7acd9e4dd470e74;p=portage.git 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. --- 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)