euscan: fixed patched versions issue

The old code extracted version 0.8.6.1 from buildbot-0.8.6p1 instead of
0.8.6_p1

Signed-off-by: volpino <fox91@anche.no>
This commit is contained in:
volpino 2012-05-21 12:03:14 +02:00
parent 7f8fb05c23
commit 373fba6e01
2 changed files with 2 additions and 2 deletions

View File

@ -153,7 +153,7 @@ def brute_force(cpv, url):
components = helpers.split_version(ver) components = helpers.split_version(ver)
versions = helpers.gen_versions(components, CONFIG["brute-force"]) versions = helpers.gen_versions(components, CONFIG["brute-force"])
""" Remove unwanted versions """ # Remove unwanted versions
for v in versions: for v in versions:
if helpers.vercmp(cp, ver, helpers.join_version(v)) >= 0: if helpers.vercmp(cp, ver, helpers.join_version(v)) >= 0:
versions.remove(v) versions.remove(v)

View File

@ -126,7 +126,7 @@ def gentoo_mangle_version(up_pv):
pv = up_pv = rev_match.group(1) pv = up_pv = rev_match.group(1)
replace_me = rev_match.group(2) replace_me = rev_match.group(2)
rev = rev_match.group(3) rev = rev_match.group(3)
additional_version = '.' + rev additional_version = '_p' + rev
for this_suf in suf_matches.keys(): for this_suf in suf_matches.keys():
if rs_match: if rs_match: