From: Zac Medico Date: Wed, 10 Jan 2007 11:41:09 +0000 (-0000) Subject: Use startwith to simplify =* matching. X-Git-Tag: v2.1.2~110 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6959744608eb2f2bdb73847108328b3230e9ed8d;p=portage.git Use startwith to simplify =* matching. svn path=/main/trunk/; revision=5521 --- 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