Skip to contentSkip to conversation

npm.bbclass: avoid DeprecationWarning with new python

PATCH New Martin Jansa 1 participant 1 message Aug 3, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 npm.bbclass: avoid DeprecationWarning with new python

meta/classes-recipe/npm.bbclass:85: DeprecationWarning: invalid escape sequence '\.'
'--transform', 's,^\./,package/,',

---
 meta/classes/npm.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/npm.bbclass +1 -1
index 8379c7b988..45e6b4fac7 100644
@@ -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