From: Andrei Gherzan Date: Tue, 10 Jul 2012 21:34:17 +0000 (+0300) Subject: bitbake: fetch2/__init__.py: Warn user if SRC_URI is using "proto" and not "protocol" X-Git-Tag: rev_ivi_2015_02_04~16528 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5f11670099353ef83fab3144f437dea957524e02;p=scm%2Fbb%2Ftizen-distro.git bitbake: fetch2/__init__.py: Warn user if SRC_URI is using "proto" and not "protocol" As well, if "proto" is used, get the associated value as "protocol" (Bitbake rev: 53e6b630f0463d2d07cdaa9c9eb36794dc9b6b69) Signed-off-by: Andrei Gherzan Signed-off-by: Richard Purdie --- diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py index 52e12a0..fa963be 100644 --- a/bitbake/lib/bb/fetch2/__init__.py +++ b/bitbake/lib/bb/fetch2/__init__.py @@ -755,6 +755,10 @@ class FetchData(object): if localonly and not isinstance(self.method, local.Local): raise NonLocalMethod() + if self.parm.get("proto", None) and "protocol" not in self.parm: + logger.warn('Consider updating %s recipe to use "protocol" not "proto" in SRC_URI.', d.getVar('PN', True)) + self.parm["protocol"] = self.parm.get("proto", None) + if hasattr(self.method, "urldata_init"): self.method.urldata_init(self, d)