summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/fetch2/wget.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/wget.py b/bitbake/lib/bb/fetch2/wget.py
index 9affa0da5f..ea99198a7b 100644
--- a/bitbake/lib/bb/fetch2/wget.py
+++ b/bitbake/lib/bb/fetch2/wget.py
@@ -49,6 +49,9 @@ class Wget(FetchMethod):
49 return True 49 return True
50 50
51 def urldata_init(self, ud, d): 51 def urldata_init(self, ud, d):
52 if 'protocol' in ud.parm:
53 if ud.parm['protocol'] == 'git':
54 raise bb.fetch2.ParameterError("Invalid protocol - if you wish to fetch from a git repository using http, you need to instead use the git:// prefix with protocol=http", ud.url)
52 55
53 if 'downloadfilename' in ud.parm: 56 if 'downloadfilename' in ud.parm:
54 ud.basename = ud.parm['downloadfilename'] 57 ud.basename = ud.parm['downloadfilename']