diff options
-rw-r--r-- | bitbake/lib/bb/fetch2/wget.py | 5 |
1 files changed, 2 insertions, 3 deletions
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): | |||
192 | def _check_latest_dir(self, url, versionstring, ud, d): | 192 | def _check_latest_dir(self, url, versionstring, ud, d): |
193 | """ | 193 | """ |
194 | Return the name of the directory with the greatest package version | 194 | Return the name of the directory with the greatest package version |
195 | If error or no version, return "" | 195 | If error or no version, return None |
196 | """ | 196 | """ |
197 | bb.debug(3, "DirURL: %s, %s" % (url, versionstring)) | 197 | bb.debug(3, "DirURL: %s, %s" % (url, versionstring)) |
198 | soup = BeautifulSoup(self._fetch_index(url, ud, d)) | 198 | soup = BeautifulSoup(self._fetch_index(url, ud, d)) |
@@ -230,7 +230,7 @@ class Wget(FetchMethod): | |||
230 | def _check_latest_version(self, url, package, current_version, ud, d): | 230 | def _check_latest_version(self, url, package, current_version, ud, d): |
231 | """ | 231 | """ |
232 | Return the latest version of a package inside a given directory path | 232 | Return the latest version of a package inside a given directory path |
233 | If error or no version, return "" | 233 | If error or no version, return None |
234 | """ | 234 | """ |
235 | valid = 0 | 235 | valid = 0 |
236 | version = ('', '', '') | 236 | version = ('', '', '') |
@@ -243,7 +243,6 @@ class Wget(FetchMethod): | |||
243 | 243 | ||
244 | pn_regex = d.getVar('REGEX', True) | 244 | pn_regex = d.getVar('REGEX', True) |
245 | if pn_regex: | 245 | if pn_regex: |
246 | testversion = version | ||
247 | pn_regex = re.compile(pn_regex) | 246 | pn_regex = re.compile(pn_regex) |
248 | bb.debug(3, "pn_regex = '%s'" % (pn_regex.pattern)) | 247 | bb.debug(3, "pn_regex = '%s'" % (pn_regex.pattern)) |
249 | 248 | ||