diff options
author | Andrei Gherzan <andrei@gherzan.ro> | 2012-07-11 00:34:17 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-07-11 15:55:26 +0100 |
commit | a3a697c4259386552cafe25fd4ab0698bd2d5292 (patch) | |
tree | 4b78d2702da097c47b20a9fc2dac52c9cf08596e | |
parent | c26f6b2b944ccf25ec11f420f39d4a18c98e0436 (diff) | |
download | poky-a3a697c4259386552cafe25fd4ab0698bd2d5292.tar.gz |
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 <andrei@gherzan.ro>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | bitbake/lib/bb/fetch2/__init__.py | 4 |
1 files changed, 4 insertions, 0 deletions
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): | |||
755 | if localonly and not isinstance(self.method, local.Local): | 755 | if localonly and not isinstance(self.method, local.Local): |
756 | raise NonLocalMethod() | 756 | raise NonLocalMethod() |
757 | 757 | ||
758 | if self.parm.get("proto", None) and "protocol" not in self.parm: | ||
759 | logger.warn('Consider updating %s recipe to use "protocol" not "proto" in SRC_URI.', d.getVar('PN', True)) | ||
760 | self.parm["protocol"] = self.parm.get("proto", None) | ||
761 | |||
758 | if hasattr(self.method, "urldata_init"): | 762 | if hasattr(self.method, "urldata_init"): |
759 | self.method.urldata_init(self, d) | 763 | self.method.urldata_init(self, d) |
760 | 764 | ||