From 38438b6cf42fb7ad45b9a901f57913af7e7591a3 Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Mon, 21 Nov 2016 14:31:43 +0200 Subject: bitbake: fetch2: obey BB_ALLOWED_NETWORKS when checking network access [YOCTO #10508] (Bitbake rev: ddd3bc2d64d7240ecb6b6e4a1ae29b1faef6cc22) Signed-off-by: Markus Lehtonen Signed-off-by: Richard Purdie --- bitbake/lib/bb/fetch2/git.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bitbake/lib/bb/fetch2/git.py') diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py index cb9fa3fb1a..f7a0c01868 100644 --- a/bitbake/lib/bb/fetch2/git.py +++ b/bitbake/lib/bb/fetch2/git.py @@ -252,7 +252,7 @@ class Git(FetchMethod): repourl = repourl[7:] clone_cmd = "LANG=C %s clone --bare --mirror %s %s --progress" % (ud.basecmd, repourl, ud.clonedir) if ud.proto.lower() != 'file': - bb.fetch2.check_network_access(d, clone_cmd) + bb.fetch2.check_network_access(d, clone_cmd, ud.url) progresshandler = GitProgressHandler(d) runfetchcmd(clone_cmd, d, log=progresshandler) @@ -384,7 +384,7 @@ class Git(FetchMethod): cmd = "%s ls-remote %s %s" % \ (ud.basecmd, repourl, search) if ud.proto.lower() != 'file': - bb.fetch2.check_network_access(d, cmd) + bb.fetch2.check_network_access(d, cmd, repourl) output = runfetchcmd(cmd, d, True) if not output: raise bb.fetch2.FetchError("The command %s gave empty output unexpectedly" % cmd, ud.url) -- cgit v1.2.3-54-g00ecf