]> code.ossystems Code Review - openembedded-core.git/commit
convert-srcuri.py: use regex to check space in SRC_URI
authorKai Kang <kai.kang@windriver.com>
Thu, 11 Nov 2021 09:57:24 +0000 (17:57 +0800)
committerAnuj Mittal <anuj.mittal@intel.com>
Tue, 16 Nov 2021 05:04:30 +0000 (13:04 +0800)
commitf87a3aba3086cd3fd89274337f25fc1717d6c981
treed8889e6a785ffe3fea6e28449365c584dfdbc4c8
parentb57ee9fafb80034cf7cd2f870a741741c2a469cd
convert-srcuri.py: use regex to check space in SRC_URI

There may be none, one or more spaces including tab before backslash in
SRC_URI. Use regex to check and update. It helps to avoid malformed uri
such as recipe open-iscsi-user in meta-openstack:

SRC_URI = "git://github.com/open-iscsi/open-iscsi.git;protocol=https  ;branch=master \

And help to check more recipes such as concurrent-ruby in the same
layer:

SRC_URI = "git://github.com/ruby-concurrency/concurrent-ruby.git;protocol=https;tag=v1.1.6\

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit a69a53573b1987ee5834a6fc27763f9bbf5fe5a4)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
scripts/contrib/convert-srcuri.py