From 5e7b6aa379b8aca0d8d1d7b3ed60deee42ac444c Mon Sep 17 00:00:00 2001 From: bornagain1981 Date: Thu, 7 Sep 2023 17:39:01 +0200 Subject: [PATCH 1/6] Update server.py removing lower --- trollmoves/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trollmoves/server.py b/trollmoves/server.py index 332401a8..52bc9c78 100644 --- a/trollmoves/server.py +++ b/trollmoves/server.py @@ -945,7 +945,7 @@ 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"]: os.remove(pathname) return new_path return pathname From f647fc28f90f4593e7cbf2d18d85db6a6fb57a09 Mon Sep 17 00:00:00 2001 From: bornagain1981 Date: Fri, 8 Sep 2023 09:56:59 +0200 Subject: [PATCH 2/6] Update server.py --- trollmoves/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trollmoves/server.py b/trollmoves/server.py index 52bc9c78..f31e3bfe 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 From 6bf5a14fd3aaa767c2b32b32cb117e417cf9a6c9 Mon Sep 17 00:00:00 2001 From: bornagain1981 Date: Fri, 8 Sep 2023 10:09:39 +0200 Subject: [PATCH 3/6] Update server.py --- trollmoves/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trollmoves/server.py b/trollmoves/server.py index f31e3bfe..a4fd5e4d 100644 --- a/trollmoves/server.py +++ b/trollmoves/server.py @@ -945,7 +945,7 @@ def unpack(pathname, except Exception: LOGGER.exception("Could not decompress %s", pathname) else: - if delete in ["1", "yes", "true", "on"]: + if delete.lower() in ["1", "yes", "true", "on"]: os.remove(pathname) return new_path return pathname From 34c76a913bdef95637563c337041760b0deabb62 Mon Sep 17 00:00:00 2001 From: bornagain1981 Date: Fri, 8 Sep 2023 10:23:15 +0200 Subject: [PATCH 4/6] Update server.py --- trollmoves/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trollmoves/server.py b/trollmoves/server.py index a4fd5e4d..f31e3bfe 100644 --- a/trollmoves/server.py +++ b/trollmoves/server.py @@ -945,7 +945,7 @@ 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"]: os.remove(pathname) return new_path return pathname From ea2390b2497d42941265a5dcb7ecc5b03250e18c Mon Sep 17 00:00:00 2001 From: bornagain1981 Date: Fri, 8 Sep 2023 14:02:59 +0200 Subject: [PATCH 5/6] Update AUTHORS.md --- AUTHORS.md | 1 + 1 file changed, 1 insertion(+) 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) From c7d630cee1bdcef40b1dcfb8e786872c0e64ed5a Mon Sep 17 00:00:00 2001 From: Dario Stelitano Date: Fri, 8 Sep 2023 16:11:22 +0200 Subject: [PATCH 6/6] Update server.py only to boolean True --- trollmoves/server.py | 1 + 1 file changed, 1 insertion(+) diff --git a/trollmoves/server.py b/trollmoves/server.py index f31e3bfe..50e04bf7 100644 --- a/trollmoves/server.py +++ b/trollmoves/server.py @@ -946,6 +946,7 @@ def unpack(pathname, LOGGER.exception("Could not decompress %s", pathname) else: if delete in ["1", "yes", "true", "on"]: + delete = True os.remove(pathname) return new_path return pathname