From patchwork Tue Jul 10 11:16:48 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [bitbake-devel, 5/5] fetch2/svn.py: Use "protocol" parameter and warn user if recipe is using "proto" Date: Tue, 10 Jul 2012 11:16:48 -0000 From: Andrei Gherzan X-Patchwork-Id: 31617 Message-Id: To: bitbake-devel@lists.openembedded.org 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 --- bitbake/lib/bb/fetch2/svn.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bitbake/lib/bb/fetch2/svn.py b/bitbake/lib/bb/fetch2/svn.py index bc5b96b..48adce8 100644 --- a/bitbake/lib/bb/fetch2/svn.py +++ b/bitbake/lib/bb/fetch2/svn.py @@ -71,7 +71,12 @@ class Svn(FetchMethod): command is "fetch", "update", "info" """ - proto = ud.parm.get('proto', 'svn') + proto = ud.parm.get('protocol', 'svn') + + 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') svn_rsh = None if proto == "svn+ssh" and "rsh" in ud.parm: