summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2016-03-07 17:27:37 +1300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-03-07 17:19:40 +0000
commitb38975103e52a0c25e9ad9032c8cca1c47cbdcc2 (patch)
tree3a8fb5951d62c2d906007017fd2a77ed292d2553
parent7b7a65c44dbdd5ba9366d4e2093f76df8758d546 (diff)
downloadbitbake-contrib-b38975103e52a0c25e9ad9032c8cca1c47cbdcc2.tar.gz
fetch2/npm: ignore unknown headers in tarballs
Tarballs that are fetched down via npm repositories seem to often have unknown headers. This doesn't affect our ability to extract the contents though so we don't really care to see those warnings. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/fetch2/npm.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/fetch2/npm.py b/lib/bb/fetch2/npm.py
index 761c2e0e7..457043f30 100644
--- a/lib/bb/fetch2/npm.py
+++ b/lib/bb/fetch2/npm.py
@@ -108,7 +108,7 @@ class Npm(FetchMethod):
file = data[pkg]['tgz']
logger.debug(2, "file to extract is %s" % file)
if file.endswith('.tgz') or file.endswith('.tar.gz') or file.endswith('.tar.Z'):
- cmd = 'tar xz --strip 1 --no-same-owner -f %s/%s' % (dldir, file)
+ cmd = 'tar xz --strip 1 --no-same-owner --warning=no-unknown-keyword -f %s/%s' % (dldir, file)
else:
bb.fatal("NPM package %s downloaded not a tarball!" % file)