diff options
author | Aníbal Limón <anibal.limon@linux.intel.com> | 2015-02-13 15:58:12 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-02-16 09:12:40 +0000 |
commit | 63a9e60a6d80cfd2693ec1a6359785dc19f98e1f (patch) | |
tree | 74cf6377b5f442ad9e21491b4b505ca5ee956325 | |
parent | 1a75b3707743c32eec9d2cf566fb6bbea9f73784 (diff) | |
download | bitbake-63a9e60a6d80cfd2693ec1a6359785dc19f98e1f.tar.gz |
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 <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | lib/bb/fetch2/wget.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/bb/fetch2/wget.py b/lib/bb/fetch2/wget.py index 809e9fc7c..570bd47ac 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 |