diff options
author | Yu Ke <ke.yu@intel.com> | 2011-01-24 15:56:54 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-01-25 12:32:50 +0000 |
commit | 029f8584d547c0792ffbe2f83451dcdfe2a3db7f (patch) | |
tree | f5d680b8b72371b1039d5aff6fac1b28eb9d530f /bitbake/lib/bb/fetch2/repo.py | |
parent | 098e8ded339f3bf864f3bad9871028176f70b12b (diff) | |
download | poky-029f8584d547c0792ffbe2f83451dcdfe2a3db7f.tar.gz |
bitbake/fetch2: Instrument fetchers when making network access
Signed-off-by: Yu Ke <ke.yu@intel.com>
Diffstat (limited to 'bitbake/lib/bb/fetch2/repo.py')
-rw-r--r-- | bitbake/lib/bb/fetch2/repo.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/repo.py b/bitbake/lib/bb/fetch2/repo.py index 510ba4686a..c80fe5de84 100644 --- a/bitbake/lib/bb/fetch2/repo.py +++ b/bitbake/lib/bb/fetch2/repo.py | |||
@@ -74,8 +74,10 @@ class Repo(Fetch): | |||
74 | bb.mkdirhier(os.path.join(codir, "repo")) | 74 | bb.mkdirhier(os.path.join(codir, "repo")) |
75 | os.chdir(os.path.join(codir, "repo")) | 75 | os.chdir(os.path.join(codir, "repo")) |
76 | if not os.path.exists(os.path.join(codir, "repo", ".repo")): | 76 | if not os.path.exists(os.path.join(codir, "repo", ".repo")): |
77 | bb.fetch2.check_network_access(d, "repo init -m %s -b %s -u %s://%s%s%s" % (ud.manifest, ud.branch, ud.proto, username, ud.host, ud.path)) | ||
77 | runfetchcmd("repo init -m %s -b %s -u %s://%s%s%s" % (ud.manifest, ud.branch, ud.proto, username, ud.host, ud.path), d) | 78 | runfetchcmd("repo init -m %s -b %s -u %s://%s%s%s" % (ud.manifest, ud.branch, ud.proto, username, ud.host, ud.path), d) |
78 | 79 | ||
80 | bb.fetch2.check_network_access(d, "repo sync %s" % ud.url) | ||
79 | runfetchcmd("repo sync", d) | 81 | runfetchcmd("repo sync", d) |
80 | os.chdir(codir) | 82 | os.chdir(codir) |
81 | 83 | ||