parent
3165b39d21
commit
e4a3e5fdd7
1 changed files with 5 additions and 1 deletions
|
@ -129,6 +129,10 @@ class TgzArchive(object):
|
||||||
self.src = src
|
self.src = src
|
||||||
self.dest = dest
|
self.dest = dest
|
||||||
self.module = module
|
self.module = module
|
||||||
|
# Prefer gtar (GNU tar) as it supports the compression options -zjJ
|
||||||
|
self.cmd_path = self.module.get_bin_path('gtar', None)
|
||||||
|
if not self.cmd_path:
|
||||||
|
# Fallback to tar
|
||||||
self.cmd_path = self.module.get_bin_path('tar')
|
self.cmd_path = self.module.get_bin_path('tar')
|
||||||
self.zipflag = 'z'
|
self.zipflag = 'z'
|
||||||
self._files_in_archive = []
|
self._files_in_archive = []
|
||||||
|
|
Loading…
Reference in a new issue