diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-02-12 11:36:13 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-02-13 08:27:17 +0000 |
commit | 613e96b06202f31870be411ca45b44237ae55b1c (patch) | |
tree | 0a01b3372eee14f8cab72a7b27251ce37de4e273 /meta/classes/buildhistory.bbclass | |
parent | 056339c32a9ff0735d39cae216663147cdbb275c (diff) | |
download | openembedded-core-613e96b06202f31870be411ca45b44237ae55b1c.tar.gz openembedded-core-613e96b06202f31870be411ca45b44237ae55b1c.tar.bz2 openembedded-core-613e96b06202f31870be411ca45b44237ae55b1c.zip |
buildhistory: Fix regex to handle versions without spaces
Its valid to have dependencies like XXX (=2.1) without spaces, as injected
by debian.bbclass. The code was breaking these into separate components
and destroying them so improve the regex to handle them.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/buildhistory.bbclass')
-rw-r--r-- | meta/classes/buildhistory.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass index 3c4647ac7b..a5a85ff4fc 100644 --- a/meta/classes/buildhistory.bbclass +++ b/meta/classes/buildhistory.bbclass @@ -145,7 +145,7 @@ python buildhistory_emit_pkghistory() { return None def sortpkglist(string): - pkgiter = re.finditer(r'[a-zA-Z0-9.+-]+( \([><=]+ [^ )]+\))?', string, 0) + pkgiter = re.finditer(r'[a-zA-Z0-9.+-]+( \([><=]+[^)]+\))?', string, 0) pkglist = [p.group(0) for p in pkgiter] pkglist.sort() return ' '.join(pkglist) |