mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-05 05:04:44 +02:00
bitbake: fetch2: Fix os.errno references
os.errno used to happen to work but is invalid. Correct to use errno. [YOCTO #13068] (Bitbake rev: b3fc65289d33274cd5dace4d4ffe55be11c991f4) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
e52122a3e6
commit
2faacaf8f4
|
@ -1028,7 +1028,7 @@ def try_mirror_url(fetch, origud, ud, ld, check = False):
|
|||
raise
|
||||
|
||||
except IOError as e:
|
||||
if e.errno in [os.errno.ESTALE]:
|
||||
if e.errno in [errno.ESTALE]:
|
||||
logger.warning("Stale Error Observed %s." % ud.url)
|
||||
return False
|
||||
raise
|
||||
|
@ -1717,7 +1717,7 @@ class Fetch(object):
|
|||
update_stamp(ud, self.d)
|
||||
|
||||
except IOError as e:
|
||||
if e.errno in [os.errno.ESTALE]:
|
||||
if e.errno in [errno.ESTALE]:
|
||||
logger.error("Stale Error Observed %s." % u)
|
||||
raise ChecksumError("Stale Error Detected")
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user