aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/fetch2/wget.py
diff options
context:
space:
mode:
authorAníbal Limón <anibal.limon@linux.intel.com>2014-11-27 17:48:43 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-11-28 14:01:53 +0000
commite30c11af7bc8a1f3d8c9198ee3c0065bd6b447cc (patch)
treeaa4cafdbeb3f213a2f62f65559e4905cf37255ec /lib/bb/fetch2/wget.py
parent148aba30155f4de17f6c6fb9b4c37f08a2db202b (diff)
downloadbitbake-e30c11af7bc8a1f3d8c9198ee3c0065bd6b447cc.tar.gz
fetch/wget: latest_versionstring clean improvments minor
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. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/fetch2/wget.py')
-rw-r--r--lib/bb/fetch2/wget.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/bb/fetch2/wget.py b/lib/bb/fetch2/wget.py
index 7841553a8..d82e78cb6 100644
--- a/lib/bb/fetch2/wget.py
+++ b/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))