Do not use construct not compatible with python 2.4, fix #5006

reviewable/pr18780/r1
Michael Scherer 11 years ago
parent e315d391ca
commit b3758f6ea4

@ -98,7 +98,7 @@ class _tgzfile(object):
destbase = os.path.basename(self.dest) destbase = os.path.basename(self.dest)
cmd = 'tar -v -C "%s" --diff -%sf "%s"' % (self.dest, self.zipflag,self.src) cmd = 'tar -v -C "%s" --diff -%sf "%s"' % (self.dest, self.zipflag,self.src)
rc, out, err = self.module.run_command(cmd) rc, out, err = self.module.run_command(cmd)
bool = True if rc == 0 else False bool = (rc == 0)
return dict( bool = bool, rc = rc , out = out, err = err, cmd = cmd) return dict( bool = bool, rc = rc , out = out, err = err, cmd = cmd)
def unarchive(self): def unarchive(self):

Loading…
Cancel
Save