From 6959744608eb2f2bdb73847108328b3230e9ed8d Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 10 Jan 2007 11:41:09 +0000 Subject: Use startwith to simplify =* matching. svn path=/main/trunk/; revision=5521 --- pym/portage_dep.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'pym') diff --git a/pym/portage_dep.py b/pym/portage_dep.py index c27d4307e..3d0e160b0 100644 --- a/pym/portage_dep.py +++ b/pym/portage_dep.py @@ -597,8 +597,7 @@ def match_from_list(mydep, candidate_list): if not myver or not myver[0].isdigit(): myver = "0"+myver xcpv = xs[0]+"/"+xs[1]+"-"+myver - xcpv = x[:min(len(x), len(mycpv))] - if xcpv == mycpv: + if xcpv.startswith(mycpv): mylist.append(x) elif operator == "~": # version, any revision, match -- cgit v1.2.3-1-g7c22