From 20afb21a375b6a5f0d4ff6e269eeee121d6f087a Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 11 Feb 2011 16:15:36 +0000 Subject: bitbake/fetch2: Ensure network access status is reset for each loop iteration in download() Signed-off-by: Richard Purdie --- bitbake/lib/bb/fetch2/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) 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): if len(urls) == 0: urls = self.urls + network = bb.data.getVar("BB_NO_NETWORK", self.d, True) + for u in urls: ud = self.ud[u] ud.setup_localpath(self.d) @@ -879,6 +881,8 @@ class Fetch(object): lf = bb.utils.lockfile(ud.lockfile) try: + network = bb.data.getVar("BB_NO_NETWORK", self.d, True) + if not m.need_update(u, ud, self.d): localpath = ud.localpath elif m.try_premirror(u, ud, self.d): -- cgit v1.2.3-54-g00ecf