mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 01:19:52 +00:00
meta: Fix Deprecated warnings from regexs
Fix handling of escape characters in regexs and hence fix python Deprecation warnings which will be problematic in python 3.8. Note that some show up as: """ meta/classes/package.bbclass:1293: DeprecationWarning: invalid escape sequence \. """ where the problem isn't on 1293 in package.bbclass but in some _prepend to a package.bbclass function in a different file like mesa.inc, often from do_package_split() calls. (From OE-Core rev: 4b1c0c7d5525fc4cea9e0f02ec54e92a6fbc6199) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -255,7 +255,7 @@ def read_shlib_providers(d):
|
||||
|
||||
shlib_provider = {}
|
||||
shlibs_dirs = d.getVar('SHLIBSDIRS').split()
|
||||
list_re = re.compile('^(.*)\.list$')
|
||||
list_re = re.compile(r'^(.*)\.list$')
|
||||
# Go from least to most specific since the last one found wins
|
||||
for dir in reversed(shlibs_dirs):
|
||||
bb.debug(2, "Reading shlib providers in %s" % (dir))
|
||||
|
||||
Reference in New Issue
Block a user