[bitbake-devel] [PATCH 3/5] fetch2/hg.py: Use "protocol" parameter and warn user if recipe is using "proto"
Andrei Gherzan
andrei at gherzan.ro
Tue Jul 10 11:16:46 UTC 2012
If SRC_URI uses the parameter "proto" while specifying the protocol, use this
value but warn the user about this problem.
Signed-off-by: Andrei Gherzan <andrei at gherzan.ro>
---
bitbake/lib/bb/fetch2/hg.py | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/bitbake/lib/bb/fetch2/hg.py b/bitbake/lib/bb/fetch2/hg.py
index ad6e85d..31ba1cf 100644
--- a/bitbake/lib/bb/fetch2/hg.py
+++ b/bitbake/lib/bb/fetch2/hg.py
@@ -82,7 +82,12 @@ class Hg(FetchMethod):
basecmd = data.expand('${FETCHCMD_hg}', d)
- proto = ud.parm.get('proto', 'http')
+ proto = ud.parm.get('protocol', 'http')
+
+ if ud.parm.get('proto') is not None:
+ logger.warn('Update %s recipe to use "protocol" not "proto".', d.getVar('PN', True))
+ # Use proto value for now
+ proto = ud.parm.get('proto')
host = ud.host
if proto == "file":
--
1.7.9.5
More information about the bitbake-devel
mailing list