diff options
-rw-r--r-- | bitbake/lib/bb/fetch2/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py index b0d5508d06..0b39ea6aaa 100644 --- a/bitbake/lib/bb/fetch2/__init__.py +++ b/bitbake/lib/bb/fetch2/__init__.py | |||
@@ -1459,6 +1459,8 @@ class FetchMethod(object): | |||
1459 | 1459 | ||
1460 | if unpack: | 1460 | if unpack: |
1461 | tar_cmd = 'tar --extract --no-same-owner' | 1461 | tar_cmd = 'tar --extract --no-same-owner' |
1462 | if 'striplevel' in urldata.parm: | ||
1463 | tar_cmd += ' --strip-components=%s' % urldata.parm['striplevel'] | ||
1462 | if file.endswith('.tar'): | 1464 | if file.endswith('.tar'): |
1463 | cmd = '%s -f %s' % (tar_cmd, file) | 1465 | cmd = '%s -f %s' % (tar_cmd, file) |
1464 | elif file.endswith('.tgz') or file.endswith('.tar.gz') or file.endswith('.tar.Z'): | 1466 | elif file.endswith('.tgz') or file.endswith('.tar.gz') or file.endswith('.tar.Z'): |