summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2018-12-07 15:33:34 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-12-08 17:17:37 +0000
commite74f80433e9a7e7ae7ec1472eb7387301d2dc816 (patch)
tree761f2d79cb6e33b2ae08b38f770965629ed844f7 /bitbake
parent3630328d05052a473bdb1c8d67d237c5cdfcb72b (diff)
downloadpoky-e74f80433e9a7e7ae7ec1472eb7387301d2dc816.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: 03aae96a8859409b1ce7e3d5c1197371fa96bd14) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/fetch2/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index 709372e16f..f112067df5 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -1027,7 +1027,7 @@ def try_mirror_url(fetch, origud, ud, ld, check = False):
1027 raise 1027 raise
1028 1028
1029 except IOError as e: 1029 except IOError as e:
1030 if e.errno in [os.errno.ESTALE]: 1030 if e.errno in [errno.ESTALE]:
1031 logger.warning("Stale Error Observed %s." % ud.url) 1031 logger.warning("Stale Error Observed %s." % ud.url)
1032 return False 1032 return False
1033 raise 1033 raise
@@ -1716,7 +1716,7 @@ class Fetch(object):
1716 update_stamp(ud, self.d) 1716 update_stamp(ud, self.d)
1717 1717
1718 except IOError as e: 1718 except IOError as e:
1719 if e.errno in [os.errno.ESTALE]: 1719 if e.errno in [errno.ESTALE]:
1720 logger.error("Stale Error Observed %s." % u) 1720 logger.error("Stale Error Observed %s." % u)
1721 raise ChecksumError("Stale Error Detected") 1721 raise ChecksumError("Stale Error Detected")
1722 1722