From ee937b7a906a3552ae1c583d71bd84253b42b017 Mon Sep 17 00:00:00 2001 From: www user for firmware <www@firmware.selfhosted.de> Date: Sat, 12 Dec 2020 17:05:32 +0000 Subject: [PATCH] fix pipeline id comparison --- download-latest-firmware-build.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/download-latest-firmware-build.py b/download-latest-firmware-build.py index 60b9526..29cdacd 100755 --- a/download-latest-firmware-build.py +++ b/download-latest-firmware-build.py @@ -50,12 +50,14 @@ def find_latest_pipeline_id(): return None if args.pipeline_id is None: - pipeline_id = find_latest_pipeline_id() + pipeline_id = int(find_latest_pipeline_id()) if args.pipeline_id_file: try: with open(args.pipeline_id_file, "r") as pipeline_id_file: - if pipeline_id == pipeline_id_file.read(): + pipeline_id_from_file = int(pipeline_id_file.read()) + + if pipeline_id == pipeline_id_from_file: print("Pipeline up to date") sys.exit(1) except FileNotFoundError: -- GitLab