diff options
| author | Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> | 2021-10-06 16:35:52 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-10-08 16:45:05 +0100 |
| commit | d2d40e733248b94b28a1cb5a0f69dc8cb5860fd9 (patch) | |
| tree | edb55af8e57eebad11b978f9cad4f82f7e73c181 /bitbake/lib/bb/fetch2 | |
| parent | c3b3d7c14f92814112ec3e193d376f1e206ce0db (diff) | |
| download | poky-d2d40e733248b94b28a1cb5a0f69dc8cb5860fd9.tar.gz | |
bitbake: fetch2: npm: Support npm archives with missing search directory mode
Delay directory restore and set execute/search directory mode bits in
unpack to support npm archives with a missing search directory mode.
(Bitbake rev: 60cbd34d3da8f0f523281aad7eec93eec9cd4db8)
Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2')
| -rw-r--r-- | bitbake/lib/bb/fetch2/npm.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/npm.py b/bitbake/lib/bb/fetch2/npm.py index 47898509ff..a39f1c1998 100644 --- a/bitbake/lib/bb/fetch2/npm.py +++ b/bitbake/lib/bb/fetch2/npm.py | |||
| @@ -69,8 +69,10 @@ def npm_unpack(tarball, destdir, d): | |||
| 69 | bb.utils.mkdirhier(destdir) | 69 | bb.utils.mkdirhier(destdir) |
| 70 | cmd = "tar --extract --gzip --file=%s" % shlex.quote(tarball) | 70 | cmd = "tar --extract --gzip --file=%s" % shlex.quote(tarball) |
| 71 | cmd += " --no-same-owner" | 71 | cmd += " --no-same-owner" |
| 72 | cmd += " --delay-directory-restore" | ||
| 72 | cmd += " --strip-components=1" | 73 | cmd += " --strip-components=1" |
| 73 | runfetchcmd(cmd, d, workdir=destdir) | 74 | runfetchcmd(cmd, d, workdir=destdir) |
| 75 | runfetchcmd("chmod -R +X %s" % (destdir), d, quiet=True, workdir=destdir) | ||
| 74 | 76 | ||
| 75 | class NpmEnvironment(object): | 77 | class NpmEnvironment(object): |
| 76 | """ | 78 | """ |
