[oe-commits] [bitbake] 03/17: fetch2/npm: ignore unknown headers in tarballs

git at git.openembedded.org git at git.openembedded.org
Mon Mar 7 17:23:55 UTC 2016


rpurdie pushed a commit to branch master
in repository bitbake.

commit b38975103e52a0c25e9ad9032c8cca1c47cbdcc2
Author: Paul Eggleton <paul.eggleton at linux.intel.com>
AuthorDate: Mon Mar 7 17:27:37 2016 +1300

    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 at linux.intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bb/fetch2/npm.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/bb/fetch2/npm.py b/lib/bb/fetch2/npm.py
index 761c2e0..457043f 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)
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list