summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>2021-12-13 12:13:52 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-12-14 22:47:04 +0000
commitbb42e4b35601a2fe94c93b4c35c6d59a3e439606 (patch)
treeeb473cbce6c3eda1e20f6d4eb09d4057d2aaf0f8
parent7c0266a24892a35197e8ab603a16b78192dd589d (diff)
downloadpoky-bb42e4b35601a2fe94c93b4c35c6d59a3e439606.tar.gz
bitbake: fetch: npm: Quote destdir in run chmod command
Quote destdir in run chmod command to support special characters in package name and to avoid syntax error for packages like '@(._.)/execute'. (Bitbake rev: a701dfce3f0e74b4d7c687eeda83fe9c8e7240b1) Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bb/fetch2/npm.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/npm.py b/bitbake/lib/bb/fetch2/npm.py
index e497c38dc7..d9daec2092 100644
--- a/bitbake/lib/bb/fetch2/npm.py
+++ b/bitbake/lib/bb/fetch2/npm.py
@@ -72,7 +72,7 @@ def npm_unpack(tarball, destdir, d):
72 cmd += " --delay-directory-restore" 72 cmd += " --delay-directory-restore"
73 cmd += " --strip-components=1" 73 cmd += " --strip-components=1"
74 runfetchcmd(cmd, d, workdir=destdir) 74 runfetchcmd(cmd, d, workdir=destdir)
75 runfetchcmd("chmod -R +X %s" % (destdir), d, quiet=True, workdir=destdir) 75 runfetchcmd("chmod -R +X '%s'" % (destdir), d, quiet=True, workdir=destdir)
76 76
77class NpmEnvironment(object): 77class NpmEnvironment(object):
78 """ 78 """