From b585c4b8b86214f97180d3e7b544afd9327298a4 Mon Sep 17 00:00:00 2001 From: Aníbal Limón Date: Thu, 27 Nov 2014 17:48:43 -0600 Subject: bitbake: fetch/wget: latest_versionstring clean improvments minor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update documentation strings in _check_latest_dir and _check_latest_version methods with the correct return types. _check_latest_version method remove unused testversion variable. (Bitbake rev: e30c11af7bc8a1f3d8c9198ee3c0065bd6b447cc) Signed-off-by: Aníbal Limón Signed-off-by: Richard Purdie --- bitbake/lib/bb/fetch2/wget.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'bitbake/lib/bb/fetch2/wget.py') diff --git a/bitbake/lib/bb/fetch2/wget.py b/bitbake/lib/bb/fetch2/wget.py index 7841553a86..d82e78cb69 100644 --- a/bitbake/lib/bb/fetch2/wget.py +++ b/bitbake/lib/bb/fetch2/wget.py @@ -192,7 +192,7 @@ class Wget(FetchMethod): def _check_latest_dir(self, url, versionstring, ud, d): """ Return the name of the directory with the greatest package version - If error or no version, return "" + If error or no version, return None """ bb.debug(3, "DirURL: %s, %s" % (url, versionstring)) soup = BeautifulSoup(self._fetch_index(url, ud, d)) @@ -230,7 +230,7 @@ class Wget(FetchMethod): def _check_latest_version(self, url, package, current_version, ud, d): """ Return the latest version of a package inside a given directory path - If error or no version, return "" + If error or no version, return None """ valid = 0 version = ('', '', '') @@ -243,7 +243,6 @@ class Wget(FetchMethod): pn_regex = d.getVar('REGEX', True) if pn_regex: - testversion = version pn_regex = re.compile(pn_regex) bb.debug(3, "pn_regex = '%s'" % (pn_regex.pattern)) -- cgit v1.2.3-54-g00ecf