diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-02-11 16:15:36 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-02-11 16:15:36 +0000 |
commit | 20afb21a375b6a5f0d4ff6e269eeee121d6f087a (patch) | |
tree | fa91149963af7de4bc2a44f4c7ead8002131776e /bitbake | |
parent | 49a18f1748d2417958b8e19cdd58c0c79f4fc728 (diff) | |
download | openembedded-core-20afb21a375b6a5f0d4ff6e269eeee121d6f087a.tar.gz openembedded-core-20afb21a375b6a5f0d4ff6e269eeee121d6f087a.tar.bz2 openembedded-core-20afb21a375b6a5f0d4ff6e269eeee121d6f087a.zip |
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')
-rw-r--r-- | bitbake/lib/bb/fetch2/__init__.py | 4 |
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): 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): |