From: Martin Jansa Date: Thu, 3 Aug 2023 01:01:30 +0000 (+0200) Subject: npm.bbclass: avoid DeprecationWarning with new python X-Git-Tag: 2022-04.13-kirkstone~92 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7078ff976ba720f25e94ddeddd3f82900b483be;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git npm.bbclass: avoid DeprecationWarning with new python meta/classes-recipe/npm.bbclass:85: DeprecationWarning: invalid escape sequence '\.' '--transform', 's,^\./,package/,', Signed-off-by: Martin Jansa Signed-off-by: Richard Purdie Signed-off-by: Steve Sakoman --- diff --git a/meta/classes/npm.bbclass b/meta/classes/npm.bbclass index 8379c7b9888..45e6b4fac76 100644 --- a/meta/classes/npm.bbclass +++ b/meta/classes/npm.bbclass @@ -82,7 +82,7 @@ def npm_pack(env, srcdir, workdir): subprocess.run(['tar', 'czf', tarball, '--exclude', './node-modules', '--exclude-vcs', - '--transform', 's,^\./,package/,', + '--transform', r's,^\./,package/,', '--mtime', '1985-10-26T08:15:00.000Z', '.'], check = True, cwd = srcdir)