bitbake/fetch2: Ensure network access status is reset for each loop iteration in download()

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2011-02-11 16:15:36 +00:00
parent 49a18f1748
commit 20afb21a37
1 changed files with 4 additions and 0 deletions

View File

@ -867,6 +867,8 @@ class Fetch(object):
if len(urls) == 0: if len(urls) == 0:
urls = self.urls urls = self.urls
network = bb.data.getVar("BB_NO_NETWORK", self.d, True)
for u in urls: for u in urls:
ud = self.ud[u] ud = self.ud[u]
ud.setup_localpath(self.d) ud.setup_localpath(self.d)
@ -879,6 +881,8 @@ class Fetch(object):
lf = bb.utils.lockfile(ud.lockfile) lf = bb.utils.lockfile(ud.lockfile)
try: try:
network = bb.data.getVar("BB_NO_NETWORK", self.d, True)
if not m.need_update(u, ud, self.d): if not m.need_update(u, ud, self.d):
localpath = ud.localpath localpath = ud.localpath
elif m.try_premirror(u, ud, self.d): elif m.try_premirror(u, ud, self.d):