summaryrefslogtreecommitdiffstats
path: root/meta/classes-recipe/npm.bbclass
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2023-03-13 21:50:37 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-03-14 17:13:10 +0000
commitac5c42477b5531be1794134a57b0b7dfa5e9f748 (patch)
tree50b42c4cf60b762f3b8142ea3b60205e3c783edd /meta/classes-recipe/npm.bbclass
parent198512c27bc47433b0c4caaf0674bd17b2355505 (diff)
downloadpoky-ac5c42477b5531be1794134a57b0b7dfa5e9f748.tar.gz
npm.bbclass: avoid DeprecationWarning with new python
meta/classes-recipe/npm.bbclass:85: DeprecationWarning: invalid escape sequence '\.' '--transform', 's,^\./,package/,', (From OE-Core rev: 47f102cfbbaa83d17999747233a81f1b570f448e) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-recipe/npm.bbclass')
-rw-r--r--meta/classes-recipe/npm.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes-recipe/npm.bbclass b/meta/classes-recipe/npm.bbclass
index 20350cea25..639f461a3a 100644
--- a/meta/classes-recipe/npm.bbclass
+++ b/meta/classes-recipe/npm.bbclass
@@ -82,7 +82,7 @@ def npm_pack(env, srcdir, workdir):
82 subprocess.run(['tar', 'czf', tarball, 82 subprocess.run(['tar', 'czf', tarball,
83 '--exclude', './node-modules', 83 '--exclude', './node-modules',
84 '--exclude-vcs', 84 '--exclude-vcs',
85 '--transform', 's,^\./,package/,', 85 '--transform', r's,^\./,package/,',
86 '--mtime', '1985-10-26T08:15:00.000Z', 86 '--mtime', '1985-10-26T08:15:00.000Z',
87 '.'], 87 '.'],
88 check = True, cwd = srcdir) 88 check = True, cwd = srcdir)