From 5f65907b6360d4d23ff34eada899e0cea58e42f1 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 2 Mar 2010 20:35:04 +0000 Subject: [PATCH] Fix deprecated dep_getkey usage in match_from_list. (trunk r15381) svn path=/main/branches/2.1.7/; revision=15608 --- pym/portage/dep.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pym/portage/dep.py b/pym/portage/dep.py index 47da7cedb..80b97c763 100644 --- a/pym/portage/dep.py +++ b/pym/portage/dep.py @@ -1056,7 +1056,9 @@ def match_from_list(mydep, candidate_list): for x in candidate_list: cp = getattr(x, "cp", None) if cp is None: - cp = dep_getkey(x) + mysplit = catpkgsplit(remove_slot(x)) + if mysplit is not None: + cp = mysplit[0] + '/' + mysplit[1] if cp != mycpv: continue mylist.append(x) -- 2.26.2