RDEPENDS style strings are regex searched for entries matching
the usual, allowed package names (plus possible version flags).
RPROVIDES however, is also allowed to contain actual file paths
like '/bin/sh', which get broken by the current implementation.
Use bb.utils to handle RDEPENDS style stings.
Signed-off-by: Adam Blank <adam.blank.g@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
return None
def sortpkglist(string):
- pkgiter = re.finditer(r'[a-zA-Z0-9.+-]+( \([><=]+[^)]+\))?', string, 0)
- pkglist = [p.group(0) for p in pkgiter]
- pkglist.sort()
- return ' '.join(pkglist)
+ return bb.utils.join_deps(bb.utils.explode_dep_versions2(string), False)
def sortlist(string):
items = string.split(' ')