mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 13:09:50 +00:00
bitbake: fetch2: Fix error handling in uri_replace()
(From Poky rev: 1bfba28a583cb167f60e05ecdf34d0786dc1eec5) (Bitbake rev: aa7467a764ddcbc7d65af99e88cf093b6ec6d24e) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -174,7 +174,8 @@ def encodeurl(decoded):
|
|||||||
|
|
||||||
def uri_replace(ud, uri_find, uri_replace, d):
|
def uri_replace(ud, uri_find, uri_replace, d):
|
||||||
if not ud.url or not uri_find or not uri_replace:
|
if not ud.url or not uri_find or not uri_replace:
|
||||||
logger.debug(1, "uri_replace: passed an undefined value, not replacing")
|
logger.error("uri_replace: passed an undefined value, not replacing")
|
||||||
|
return None
|
||||||
uri_decoded = list(decodeurl(ud.url))
|
uri_decoded = list(decodeurl(ud.url))
|
||||||
uri_find_decoded = list(decodeurl(uri_find))
|
uri_find_decoded = list(decodeurl(uri_find))
|
||||||
uri_replace_decoded = list(decodeurl(uri_replace))
|
uri_replace_decoded = list(decodeurl(uri_replace))
|
||||||
|
|||||||
Reference in New Issue
Block a user