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/osc.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bitbake/lib/bb/fetch2/osc.py') diff --git a/bitbake/lib/bb/fetch2/osc.py b/bitbake/lib/bb/fetch2/osc.py index 619e2f15d..25dcb7bd6 100644 --- a/bitbake/lib/bb/fetch2/osc.py +++ b/bitbake/lib/bb/fetch2/osc.py @@ -92,6 +92,7 @@ class Osc(Fetch): # update sources there os.chdir(ud.moddir) logger.debug(1, "Running %s", oscupdatecmd) + bb.fetch2.check_network_access(d, oscupdatecmd) runfetchcmd(oscupdatecmd, d) else: oscfetchcmd = self._buildosccommand(ud, d, "fetch") @@ -100,6 +101,7 @@ class Osc(Fetch): bb.mkdirhier(ud.pkgdir) os.chdir(ud.pkgdir) logger.debug(1, "Running %s", oscfetchcmd) + bb.fetch2.check_network_access(d, oscfetchcmd) runfetchcmd(oscfetchcmd, d) os.chdir(os.path.join(ud.pkgdir + ud.path)) -- cgit v1.2.3