npm.bbclass: avoid DeprecationWarning with new python
PATCH 1/1 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 <[email protected]>
Signed-off-by Richard Purdie <[email protected]>
--- meta/classes/npm.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/npm.bbclass +1 -1
@@ -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)
Signature · 1 line
2.41.0