From: Martin Jansa Date: Mon, 13 Mar 2023 20:50:37 +0000 (+0100) Subject: npm.bbclass: avoid DeprecationWarning with new python X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~1403 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47f102cfbbaa83d17999747233a81f1b570f448e;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.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 --- diff --git a/meta/classes-recipe/npm.bbclass b/meta/classes-recipe/npm.bbclass index 20350cea255..639f461a3a4 100644 --- a/meta/classes-recipe/npm.bbclass +++ b/meta/classes-recipe/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)