mirror of
https://git.yoctoproject.org/poky
synced 2026-09-15 06:49:33 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
c3b3d7c14f
commit
d2d40e7332
@@ -69,8 +69,10 @@ def npm_unpack(tarball, destdir, d):
|
|||||||
bb.utils.mkdirhier(destdir)
|
bb.utils.mkdirhier(destdir)
|
||||||
cmd = "tar --extract --gzip --file=%s" % shlex.quote(tarball)
|
cmd = "tar --extract --gzip --file=%s" % shlex.quote(tarball)
|
||||||
cmd += " --no-same-owner"
|
cmd += " --no-same-owner"
|
||||||
|
cmd += " --delay-directory-restore"
|
||||||
cmd += " --strip-components=1"
|
cmd += " --strip-components=1"
|
||||||
runfetchcmd(cmd, d, workdir=destdir)
|
runfetchcmd(cmd, d, workdir=destdir)
|
||||||
|
runfetchcmd("chmod -R +X %s" % (destdir), d, quiet=True, workdir=destdir)
|
||||||
|
|
||||||
class NpmEnvironment(object):
|
class NpmEnvironment(object):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user