From 07f297252063c2a6d049b0f1a3d959b897e16d86 Mon Sep 17 00:00:00 2001 From: Orsiris de Jong Date: Mon, 15 Jan 2024 16:37:34 +0100 Subject: [PATCH] Return most recent restic dev binary --- npbackup/core/restic_source_binary.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/npbackup/core/restic_source_binary.py b/npbackup/core/restic_source_binary.py index 89968af..d69c925 100644 --- a/npbackup/core/restic_source_binary.py +++ b/npbackup/core/restic_source_binary.py @@ -44,5 +44,7 @@ def get_restic_internal_binary(arch: str) -> str: if binary: guessed_path = glob.glob(os.path.join(RESTIC_SOURCE_FILES_DIR, binary)) if guessed_path: - return guessed_path[0] + # Take glob results reversed so we get newer version + # Does not always compute, but is g00denough(TM) for our dev + return guessed_path[-1] return None