From 029f19bd3d4dc09fb48bf6e5322d48bb84c4eb34 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 11 Feb 2011 22:08:21 +0000 Subject: bitbake/fetch2: Add explict network access exception and handling to give users usable error messages Signed-off-by: Richard Purdie --- bitbake/lib/bb/fetch2/osc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (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 f252b5e4a..4bf411c24 100644 --- a/bitbake/lib/bb/fetch2/osc.py +++ b/bitbake/lib/bb/fetch2/osc.py @@ -90,7 +90,7 @@ class Osc(FetchMethod): # update sources there os.chdir(ud.moddir) logger.debug(1, "Running %s", oscupdatecmd) - bb.fetch2.check_network_access(d, oscupdatecmd) + bb.fetch2.check_network_access(d, oscupdatecmd, ud.url) runfetchcmd(oscupdatecmd, d) else: oscfetchcmd = self._buildosccommand(ud, d, "fetch") @@ -99,7 +99,7 @@ class Osc(FetchMethod): bb.mkdirhier(ud.pkgdir) os.chdir(ud.pkgdir) logger.debug(1, "Running %s", oscfetchcmd) - bb.fetch2.check_network_access(d, oscfetchcmd) + bb.fetch2.check_network_access(d, oscfetchcmd, ud.url) runfetchcmd(oscfetchcmd, d) os.chdir(os.path.join(ud.pkgdir + ud.path)) -- cgit v1.2.3