summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/fetch2/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index de2c6520e9..06facbcf46 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -867,6 +867,8 @@ class Fetch(object):
867 if len(urls) == 0: 867 if len(urls) == 0:
868 urls = self.urls 868 urls = self.urls
869 869
870 network = bb.data.getVar("BB_NO_NETWORK", self.d, True)
871
870 for u in urls: 872 for u in urls:
871 ud = self.ud[u] 873 ud = self.ud[u]
872 ud.setup_localpath(self.d) 874 ud.setup_localpath(self.d)
@@ -879,6 +881,8 @@ class Fetch(object):
879 lf = bb.utils.lockfile(ud.lockfile) 881 lf = bb.utils.lockfile(ud.lockfile)
880 882
881 try: 883 try:
884 network = bb.data.getVar("BB_NO_NETWORK", self.d, True)
885
882 if not m.need_update(u, ud, self.d): 886 if not m.need_update(u, ud, self.d):
883 localpath = ud.localpath 887 localpath = ud.localpath
884 elif m.try_premirror(u, ud, self.d): 888 elif m.try_premirror(u, ud, self.d):