]> code.ossystems Code Review - openembedded-core.git/commit
lib/oe/reciputils.py: support character `+' in git pv
authorHongxu Jia <hongxu.jia@windriver.com>
Mon, 3 Jun 2019 08:49:20 +0000 (01:49 -0700)
committerArmin Kuster <akuster808@gmail.com>
Fri, 14 Jun 2019 14:05:32 +0000 (07:05 -0700)
commit65e2b1a2333a2268f4ee7de6a20cb13ec697b50e
treedc2596e2356652ea5511167f2d420e31ed37d88b
parent00eae0b83bc0d30b8164874a534d561190c78362
lib/oe/reciputils.py: support character `+' in git pv

While pv contains char `+' (such as ncurses 6.1+20181013),
it was incorrectly converted to `6.1'

In this commit:
- Convert [^\+]* to .*?
  Support pv to contain char `+' and not greedy match
  (Such as ncurses 6.1+20181013)

- Add [^\+] to sfx match
  Support sfx contains extra chars between `+' and `git'
  (such as asciidoc "8.6.9+py3-gitAUTOINC+618f6e6f6b")

- Make sfx and rev greedy match

Run `devtool check-upgrade-status --all' in poky and compare results,
only one difference on ncurses version:
Without the commit:
INFO: ncurses                   6.1             6.1+20181013    Hongxu Jia <hongxu.jia@windriver.com> 7a97a7f937762ba342d5b2fd7cd090885a809835

With the commit:
INFO: ncurses                   6.1+20181013    MATCH           Hongxu Jia <hongxu.jia@windriver.com> 7a97a7f937762ba342d5b2fd7cd090885a809835

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/lib/oe/recipeutils.py