]> code.ossystems Code Review - openembedded-core.git/commit
lib/oe/utils: Make prune_suffix prune a suffix
authorAndre Rosa <andre.rosa@lge.com>
Sat, 6 Apr 2019 01:28:25 +0000 (01:28 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 9 Apr 2019 12:44:32 +0000 (13:44 +0100)
commit610ac84170f8a91cc3321edfc336a9e39f24ebe3
tree236b5c7566c64b6e7575c46db46c3a10db2beb16
parent52657215bcffc022821395950cf3236250370223
lib/oe/utils: Make prune_suffix prune a suffix

... instead of replacing a substring that could happen more than once and not only when it ends with it. Do the same for the prefix.

See related https://github.com/openembedded/bitbake/pull/24 . There it stops replacing sufixes once first one is matched but not here.

Signed-off-by: Andre Rosa <andre.rosa@lge.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/utils.py