diff --git a/AUTHORS.md b/AUTHORS.md index c4f5d27d..187f3de0 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -12,3 +12,4 @@ The following people have made contributions to this project: - [Panu Lahtinen (pnuu)](https://github.com/pnuu) - [Lars Ørum Rasmussen (loerum)](https://github.com/loerum) - [Martin Raspaud (mraspaud)](https://github.com/mraspaud) +- [Dario Stelitano (bornagain1981)] (https://github.com/bornagain1981) diff --git a/trollmoves/server.py b/trollmoves/server.py index 332401a8..50e04bf7 100644 --- a/trollmoves/server.py +++ b/trollmoves/server.py @@ -931,7 +931,7 @@ def unpack(pathname, compression=None, working_directory=None, prog=None, - delete="False", + delete=False, **kwargs): """Unpack *pathname*.""" del kwargs @@ -945,7 +945,8 @@ def unpack(pathname, except Exception: LOGGER.exception("Could not decompress %s", pathname) else: - if delete.lower() in ["1", "yes", "true", "on"]: + if delete in ["1", "yes", "true", "on"]: + delete = True os.remove(pathname) return new_path return pathname