summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/__init__.py
diff options
context:
space:
mode:
authorCaner Altinbasak <cal@brightsign.biz>2021-10-13 13:14:42 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-10-14 22:37:43 +0100
commitbd5a07fbcb6d12414975a38b0920eb9df79042fd (patch)
tree2807385ae7e7982fcbb918082a5efb5bf1ce9cf6 /bitbake/lib/bb/fetch2/__init__.py
parent8e6aaed8ffc9ff823056ad38ccc57c56f0afea26 (diff)
downloadpoky-bd5a07fbcb6d12414975a38b0920eb9df79042fd.tar.gz
bitbake: fetch2: Do not attempt to verify donestamp if download is not complete
npmsw(and maybe other fetchers) may try to download same files simulatenously. if a premirror is set, download method tries premirror location first. If file is not found, done is set to false. In the meantime, other fetchers may download the files required and verify_donestamp might return true. In this scenerio, fetcher doesn't try to download again and fails. Do not attempt to verify_donestamp if done is not set. By this way, we ensure that fetcher attempts to do another download after premirror failure. (Bitbake rev: 4fa25714916e84f99ecd22cb76cb5adada01e5e8) Signed-off-by: Caner Altinbasak <cal@brightsign.biz> 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__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index 63e619ab98..666cc1306a 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -1721,7 +1721,9 @@ class Fetch(object):
1721 self.d.setVar("BB_NO_NETWORK", "1") 1721 self.d.setVar("BB_NO_NETWORK", "1")
1722 1722
1723 firsterr = None 1723 firsterr = None
1724 verified_stamp = m.verify_donestamp(ud, self.d) 1724 verified_stamp = False
1725 if done:
1726 verified_stamp = m.verify_donestamp(ud, self.d)
1725 if not done and (not verified_stamp or m.need_update(ud, self.d)): 1727 if not done and (not verified_stamp or m.need_update(ud, self.d)):
1726 try: 1728 try:
1727 if not trusted_network(self.d, ud.url): 1729 if not trusted_network(self.d, ud.url):