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/hg.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bitbake/lib/bb/fetch2/hg.py') diff --git a/bitbake/lib/bb/fetch2/hg.py b/bitbake/lib/bb/fetch2/hg.py index ac5825baa9..6a56f8d0cd 100644 --- a/bitbake/lib/bb/fetch2/hg.py +++ b/bitbake/lib/bb/fetch2/hg.py @@ -124,7 +124,7 @@ class Hg(FetchMethod): # update sources there os.chdir(ud.moddir) logger.debug(1, "Running %s", updatecmd) - bb.fetch2.check_network_access(d, updatecmd) + bb.fetch2.check_network_access(d, updatecmd, ud.url) runfetchcmd(updatecmd, d) else: @@ -134,7 +134,7 @@ class Hg(FetchMethod): bb.mkdirhier(ud.pkgdir) os.chdir(ud.pkgdir) logger.debug(1, "Running %s", fetchcmd) - bb.fetch2.check_network_access(d, fetchcmd) + bb.fetch2.check_network_access(d, fetchcmd, ud.url) runfetchcmd(fetchcmd, d) # Even when we clone (fetch), we still need to update as hg's clone -- cgit v1.2.3-54-g00ecf