summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAndrei Gherzan <andrei@gherzan.ro>2012-07-11 00:34:17 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-07-11 11:43:29 +0100
commit53e6b630f0463d2d07cdaa9c9eb36794dc9b6b69 (patch)
tree99bdddf49f2f52a9f5055229db4d6f254c26a68f /lib
parent630876b40ed181312e84f902c4cfb97361afbe81 (diff)
downloadbitbake-53e6b630f0463d2d07cdaa9c9eb36794dc9b6b69.tar.gz
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" Signed-off-by: Andrei Gherzan <andrei@gherzan.ro> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/bb/fetch2/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py
index 52e12a0a9..fa963bed5 100644
--- a/lib/bb/fetch2/__init__.py
+++ b/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)