From 58559fb4ae65e6a8f367a735e533edb03dc16d11 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 4 Oct 2006 23:02:51 +0000 Subject: [PATCH] Share duplicate code between dep_getkey() and dep_getcpv(). svn path=/main/trunk/; revision=4593 --- pym/portage_dep.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/pym/portage_dep.py b/pym/portage_dep.py index f5ea8e72d..1f20b8ac3 100644 --- a/pym/portage_dep.py +++ b/pym/portage_dep.py @@ -242,16 +242,7 @@ def isspecific(mypkg): return 0 def dep_getkey(mydep): - if mydep and mydep[0] == "*": - mydep = mydep[1:] - if mydep and mydep[-1] == "*": - mydep = mydep[:-1] - if mydep and mydep[0] == "!": - mydep = mydep[1:] - if mydep[:2] in [">=", "<="]: - mydep = mydep[2:] - elif mydep[:1] in "=<>~": - mydep = mydep[1:] + mydep = dep_getcpv(mydep) if mydep and isspecific(mydep): mysplit = catpkgsplit(mydep) if not mysplit: -- 2.26.2