aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2018-12-07 15:33:34 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-01-31 11:28:24 +0000
commitb3fc65289d33274cd5dace4d4ffe55be11c991f4 (patch)
tree93514b28cc2dc45735a40322a815ec2cf245434e
parenta21671e8a483ba8a6986d961987eda2d36ec61ca (diff)
downloadbitbake-1.40.tar.gz
bitbake-1.40.tar.bz2
bitbake-1.40.zip
fetch2: Fix os.errno references1.40
os.errno used to happen to work but is invalid. Correct to use errno. [YOCTO #13068] Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/fetch2/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py
index 03e56471..bb834624 100644
--- a/lib/bb/fetch2/__init__.py
+++ b/lib/bb/fetch2/__init__.py
@@ -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")