diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-06-20 12:37:36 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-06-21 13:10:32 +0100 |
commit | 4a0dc38da6805fb22cdc14ecad8bebe7f6a3b5e9 (patch) | |
tree | 829c0c39c99d32721fce212e0ed01d04554fd000 | |
parent | 85dc355580509772c67e92ab58c1fe44b167ff45 (diff) | |
download | poky-4a0dc38da6805fb22cdc14ecad8bebe7f6a3b5e9.tar.gz |
bitbake: fetch2: Fix error handling in uri_replace()
(From Poky rev: 1bfba28a583cb167f60e05ecdf34d0786dc1eec5)
(Bitbake rev: aa7467a764ddcbc7d65af99e88cf093b6ec6d24e)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | bitbake/lib/bb/fetch2/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py index 73ac73a112..067d60cc9f 100644 --- a/bitbake/lib/bb/fetch2/__init__.py +++ b/bitbake/lib/bb/fetch2/__init__.py | |||
@@ -184,7 +184,8 @@ def encodeurl(decoded): | |||
184 | 184 | ||
185 | def uri_replace(ud, uri_find, uri_replace, d): | 185 | def uri_replace(ud, uri_find, uri_replace, d): |
186 | if not ud.url or not uri_find or not uri_replace: | 186 | if not ud.url or not uri_find or not uri_replace: |
187 | logger.debug(1, "uri_replace: passed an undefined value, not replacing") | 187 | logger.error("uri_replace: passed an undefined value, not replacing") |
188 | return None | ||
188 | uri_decoded = list(decodeurl(ud.url)) | 189 | uri_decoded = list(decodeurl(ud.url)) |
189 | uri_find_decoded = list(decodeurl(uri_find)) | 190 | uri_find_decoded = list(decodeurl(uri_find)) |
190 | uri_replace_decoded = list(decodeurl(uri_replace)) | 191 | uri_replace_decoded = list(decodeurl(uri_replace)) |