From: Aníbal Limón Date: Fri, 13 Feb 2015 21:58:12 +0000 (-0600) Subject: fetch2: wget _modelate_version improvments X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=63a9e60a6d80cfd2693ec1a6359785dc19f98e1f;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git fetch2: wget _modelate_version improvments Fix sustition for rc, beta and alpha releses from -N to N weight. Signed-off-by: Aníbal Limón Signed-off-by: Richard Purdie --- diff --git a/lib/bb/fetch2/wget.py b/lib/bb/fetch2/wget.py index 809e9fc7c64..570bd47ac01 100644 --- a/lib/bb/fetch2/wget.py +++ b/lib/bb/fetch2/wget.py @@ -143,9 +143,9 @@ class Wget(FetchMethod): version = re.sub('\-', '.', version) version = re.sub('_', '.', version) - version = re.sub('(rc)+', '.-1.', version) - version = re.sub('(alpha)+', '.-3.', version) - version = re.sub('(beta)+', '.-2.', version) + version = re.sub('(rc)+', '.1000.', version) + version = re.sub('(beta)+', '.100.', version) + version = re.sub('(alpha)+', '.10.', version) if version[0] == 'v': version = version[1:len(version)] return version