]> code.ossystems Code Review - openembedded-core.git/commitdiff
systemd: fix DeprecationWarning about regexps
authorMartin Jansa <Martin.Jansa@gmail.com>
Sun, 20 Feb 2022 08:47:43 +0000 (09:47 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 21 Feb 2022 21:52:08 +0000 (21:52 +0000)
* fixes:
  oe-core/meta/classes/package.bbclass:1342: DeprecationWarning: invalid escape sequence \.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/systemd/systemd_250.3.bb

index 0fe5fb7976c1c90a5a568a14b481ae7f5b7c7937..9121333f5609c288b6ab50ddd68e002cb7dc79eb 100644 (file)
@@ -352,7 +352,7 @@ do_install() {
 
 python populate_packages:prepend (){
     systemdlibdir = d.getVar("rootlibdir")
-    do_split_packages(d, systemdlibdir, '^lib(.*)\.so\.*', 'lib%s', 'Systemd %s library', extra_depends='', allow_links=True)
+    do_split_packages(d, systemdlibdir, r'^lib(.*)\.so\.*', 'lib%s', 'Systemd %s library', extra_depends='', allow_links=True)
 }
 PACKAGES_DYNAMIC += "^lib(udev|systemd|nss).*"