diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-12-07 15:33:34 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-01-31 11:28:39 +0000 |
commit | 2faacaf8f4bf5afff9dab8d9164a83788465224f (patch) | |
tree | dfdd357b2c99001a66a4b04933e2993c86f3cf43 /bitbake/lib/bb/fetch2/__init__.py | |
parent | e52122a3e6912575ff401a4af6ac1bf3070092bc (diff) | |
download | poky-2faacaf8f4bf5afff9dab8d9164a83788465224f.tar.gz |
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>
Diffstat (limited to 'bitbake/lib/bb/fetch2/__init__.py')
-rw-r--r-- | bitbake/lib/bb/fetch2/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py index 03e56471d8..bb83462461 100644 --- a/bitbake/lib/bb/fetch2/__init__.py +++ b/bitbake/lib/bb/fetch2/__init__.py | |||
@@ -1028,7 +1028,7 @@ def try_mirror_url(fetch, origud, ud, ld, check = False): | |||
1028 | raise | 1028 | raise |
1029 | 1029 | ||
1030 | except IOError as e: | 1030 | except IOError as e: |
1031 | if e.errno in [os.errno.ESTALE]: | 1031 | if e.errno in [errno.ESTALE]: |
1032 | logger.warning("Stale Error Observed %s." % ud.url) | 1032 | logger.warning("Stale Error Observed %s." % ud.url) |
1033 | return False | 1033 | return False |
1034 | raise | 1034 | raise |
@@ -1717,7 +1717,7 @@ class Fetch(object): | |||
1717 | update_stamp(ud, self.d) | 1717 | update_stamp(ud, self.d) |
1718 | 1718 | ||
1719 | except IOError as e: | 1719 | except IOError as e: |
1720 | if e.errno in [os.errno.ESTALE]: | 1720 | if e.errno in [errno.ESTALE]: |
1721 | logger.error("Stale Error Observed %s." % u) | 1721 | logger.error("Stale Error Observed %s." % u) |
1722 | raise ChecksumError("Stale Error Detected") | 1722 | raise ChecksumError("Stale Error Detected") |
1723 | 1723 | ||