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>2022-01-05 17:36:26 +0000
commit9676f72521191219f88d64d8da9f83d7b4fe605c (patch)
tree5ec1fed27b59e777f63465ca6843984eba3bc341
parentdc53448274100007aa4522f5d81e110a507f5120 (diff)
downloadpoky-9676f72521191219f88d64d8da9f83d7b4fe605c.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: e5b8983bec98b33dab2706575b9e7763c102f720) Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit a701dfce3f0e74b4d7c687eeda83fe9c8e7240b1) Signed-off-by: Anuj Mittal <anuj.mittal@intel.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 """