diff options
author | Aníbal Limón <anibal.limon@linux.intel.com> | 2014-11-27 19:12:07 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-11-28 14:03:01 +0000 |
commit | 75b82b03b0cca0beb874b2f7fac7cf446423fa4f (patch) | |
tree | f5396564d8f7d80da17acd7579cc654f3f80a3f4 | |
parent | aa35076f343ccfc7180e55cad434ecc900e6ccdb (diff) | |
download | poky-75b82b03b0cca0beb874b2f7fac7cf446423fa4f.tar.gz |
bitbake: fetch/wget: latest_versionstring add support for search in RAW html lines
Some upstream sites put the name of the package in the body of href tags,
i.e. <a href="#43">somepackage-v1.4.10.tar.gz </a>.
(Bitbake rev: 4fa8542a8880d5749fbb3382706e011b012024d0)
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | bitbake/lib/bb/fetch2/wget.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/wget.py b/bitbake/lib/bb/fetch2/wget.py index 20e8df11ce..f5bdfc7f65 100644 --- a/bitbake/lib/bb/fetch2/wget.py +++ b/bitbake/lib/bb/fetch2/wget.py | |||
@@ -256,9 +256,14 @@ class Wget(FetchMethod): | |||
256 | bb.debug(3, "Pver = '%s'" % (m.group('pver'))) | 256 | bb.debug(3, "Pver = '%s'" % (m.group('pver'))) |
257 | newver = ('', m.group('pver'), '') | 257 | newver = ('', m.group('pver'), '') |
258 | else: | 258 | else: |
259 | continue | 259 | m = pn_regex.search(str(line)) |
260 | if m: | ||
261 | bb.debug(3, "Pver = '%s'" % (m.group('pver'))) | ||
262 | newver = ('', m.group('pver'), '') | ||
260 | else: | 263 | else: |
261 | newver = self._parse_path(self.package_custom_regex_comp, line['href']) | 264 | newver = self._parse_path(self.package_custom_regex_comp, line['href']) |
265 | if not newver: | ||
266 | newver = self._parse_path(self.package_custom_regex_comp, str(line)) | ||
262 | 267 | ||
263 | if newver: | 268 | if newver: |
264 | bb.debug(3, "Upstream version found: %s" % newver[1]) | 269 | bb.debug(3, "Upstream version found: %s" % newver[1]) |