This commit is contained in:
mcarton
2015-08-19 11:00:09 +02:00
parent 85647794dc
commit 49917ce6b4
8 changed files with 17 additions and 13 deletions
+2 -2
View File
@@ -35,7 +35,7 @@ def get_new_command(command, settings):
.format(dir=_tar_file(command.script)[1], cmd=command.script)
def side_effect(command, settings):
with tarfile.TarFile(_tar_file(command.script)[0]) as archive:
def side_effect(old_cmd, command, settings):
with tarfile.TarFile(_tar_file(old_cmd.script)[0]) as archive:
for file in archive.getnames():
os.remove(file)