From a3a697c4259386552cafe25fd4ab0698bd2d5292 Mon Sep 17 00:00:00 2001 From: Andrei Gherzan Date: Wed, 11 Jul 2012 00:34:17 +0300 Subject: 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 --- bitbake/lib/bb/fetch2/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bitbake/lib') diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py index 52e12a0a9b..fa963bed59 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) -- cgit v1.2.3-54-g00ecf