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:13:06 +0000 |
commit | 5a88664b220bbfa3c82784c4dc288fd130ed3d85 (patch) | |
tree | 5e989e99380b70ffed663a4f84b6bd7ffe991bca /bitbake | |
parent | 22cebb87b72ec6641f704d291d096ef63fa108a2 (diff) | |
download | poky-5a88664b220bbfa3c82784c4dc288fd130ed3d85.tar.gz |
bitbake: fetch2: wget _modelate_version improvments
Fix sustition for rc, beta and alpha releses from -N to N weight.
(Bitbake rev: 63a9e60a6d80cfd2693ec1a6359785dc19f98e1f)
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/fetch2/wget.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bb/fetch2/wget.py b/bitbake/lib/bb/fetch2/wget.py index 809e9fc7c6..570bd47ac0 100644 --- a/bitbake/lib/bb/fetch2/wget.py +++ b/bitbake/lib/bb/fetch2/wget.py | |||
@@ -143,9 +143,9 @@ class Wget(FetchMethod): | |||
143 | 143 | ||
144 | version = re.sub('\-', '.', version) | 144 | version = re.sub('\-', '.', version) |
145 | version = re.sub('_', '.', version) | 145 | version = re.sub('_', '.', version) |
146 | version = re.sub('(rc)+', '.-1.', version) | 146 | version = re.sub('(rc)+', '.1000.', version) |
147 | version = re.sub('(alpha)+', '.-3.', version) | 147 | version = re.sub('(beta)+', '.100.', version) |
148 | version = re.sub('(beta)+', '.-2.', version) | 148 | version = re.sub('(alpha)+', '.10.', version) |
149 | if version[0] == 'v': | 149 | if version[0] == 'v': |
150 | version = version[1:len(version)] | 150 | version = version[1:len(version)] |
151 | return version | 151 | return version |