From 029f8584d547c0792ffbe2f83451dcdfe2a3db7f Mon Sep 17 00:00:00 2001 From: Yu Ke Date: Mon, 24 Jan 2011 15:56:54 +0800 Subject: bitbake/fetch2: Instrument fetchers when making network access Signed-off-by: Yu Ke --- bitbake/lib/bb/fetch2/repo.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bitbake/lib/bb/fetch2/repo.py') 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): bb.mkdirhier(os.path.join(codir, "repo")) os.chdir(os.path.join(codir, "repo")) if not os.path.exists(os.path.join(codir, "repo", ".repo")): + 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)) runfetchcmd("repo init -m %s -b %s -u %s://%s%s%s" % (ud.manifest, ud.branch, ud.proto, username, ud.host, ud.path), d) + bb.fetch2.check_network_access(d, "repo sync %s" % ud.url) runfetchcmd("repo sync", d) os.chdir(codir) -- cgit v1.2.3-54-g00ecf