mirror of
https://git.yoctoproject.org/poky
synced 2026-04-21 03:32:12 +02:00
npm.bbclass: avoid DeprecationWarning with new python
meta/classes-recipe/npm.bbclass:85: DeprecationWarning: invalid escape sequence '\.' '--transform', 's,^\./,package/,', (From OE-Core rev: a7078ff976ba720f25e94ddeddd3f82900b483be) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Steve Sakoman <steve@sakoman.com>
This commit is contained in:
committed by
Steve Sakoman
parent
4dbd4e990e
commit
d21b4675d6
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user