summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/fetch2/__init__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index fe4f4b1d60..07aac4c3a0 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -479,7 +479,7 @@ def try_mirrors(d, origud, mirrors, check = False):
479 return found 479 return found
480 continue 480 continue
481 481
482 if ud.method.need_update(newuri, ud, ld): 482 if not os.path.exists(ud.donestamp) or ud.method.need_update(newuri, ud, ld):
483 ud.method.download(newuri, ud, ld) 483 ud.method.download(newuri, ud, ld)
484 if hasattr(ud.method,"build_mirror_data"): 484 if hasattr(ud.method,"build_mirror_data"):
485 ud.method.build_mirror_data(newuri, ud, ld) 485 ud.method.build_mirror_data(newuri, ud, ld)
@@ -955,7 +955,7 @@ class Fetch(object):
955 try: 955 try:
956 self.d.setVar("BB_NO_NETWORK", network) 956 self.d.setVar("BB_NO_NETWORK", network)
957 957
958 if not m.need_update(u, ud, self.d): 958 if os.path.exists(ud.donestamp) and not m.need_update(u, ud, self.d):
959 localpath = ud.localpath 959 localpath = ud.localpath
960 elif m.try_premirror(u, ud, self.d): 960 elif m.try_premirror(u, ud, self.d):
961 logger.debug(1, "Trying PREMIRRORS") 961 logger.debug(1, "Trying PREMIRRORS")
@@ -966,7 +966,7 @@ class Fetch(object):
966 self.d.setVar("BB_NO_NETWORK", "1") 966 self.d.setVar("BB_NO_NETWORK", "1")
967 967
968 firsterr = None 968 firsterr = None
969 if not localpath and m.need_update(u, ud, self.d): 969 if not localpath and ((not os.path.exists(ud.donestamp)) or m.need_update(u, ud, self.d)):
970 try: 970 try:
971 logger.debug(1, "Trying Upstream") 971 logger.debug(1, "Trying Upstream")
972 m.download(u, ud, self.d) 972 m.download(u, ud, self.d)