summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-11 16:15:36 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-11 16:15:36 +0000
commit20afb21a375b6a5f0d4ff6e269eeee121d6f087a (patch)
treefa91149963af7de4bc2a44f4c7ead8002131776e /bitbake/lib
parent49a18f1748d2417958b8e19cdd58c0c79f4fc728 (diff)
downloadpoky-20afb21a375b6a5f0d4ff6e269eeee121d6f087a.tar.gz
bitbake/fetch2: Ensure network access status is reset for each loop iteration in download()
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-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):