From patchwork Tue Jul 10 11:16:45 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [bitbake-devel, 2/5] fetch2/git.py: Use "protocol" parameter and warn user if recipe is using "proto" Date: Tue, 10 Jul 2012 11:16:45 -0000 From: Andrei Gherzan X-Patchwork-Id: 31611 Message-Id: <9de1c29dc2b30bfd841529381b5419455ebde4de.1341918809.git.andrei@gherzan.ro> 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/git.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py index 384007c..354f3b1 100644 --- a/bitbake/lib/bb/fetch2/git.py +++ b/bitbake/lib/bb/fetch2/git.py @@ -92,6 +92,10 @@ class Git(FetchMethod): """ if 'protocol' in ud.parm: ud.proto = ud.parm['protocol'] + elif 'proto' in ud.parm: + logger.warn('Update %s recipe to use "protocol" not "proto".', d.getVar('PN', True)) + # Use proto value for now + ud.proto = ud.parm['proto'] elif not ud.host: ud.proto = 'file' else: