diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-12-07 15:33:34 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-12-07 16:00:05 +0000 |
commit | 03aae96a8859409b1ce7e3d5c1197371fa96bd14 (patch) | |
tree | 89b1a5ce08dd4fa19b04a54adb47bf49c4eb7f45 /lib | |
parent | 704f27dc28d50a6dc02c8b64274ee4ecb3058c4a (diff) | |
download | bitbake-03aae96a8859409b1ce7e3d5c1197371fa96bd14.tar.gz |
fetch2: Fix os.errno references
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>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bb/fetch2/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py index 709372e16..f112067df 100644 --- a/lib/bb/fetch2/__init__.py +++ b/lib/bb/fetch2/__init__.py @@ -1027,7 +1027,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 @@ -1716,7 +1716,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") |