From 2bb23f00af44bba025abc3463cf6e88e1c4aeebe Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sun, 8 Jul 2018 14:48:16 +0200 Subject: [PATCH] fix logic bug in platform module API version check --- src/borg/helpers/checks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/borg/helpers/checks.py b/src/borg/helpers/checks.py index 08c540541..fa4d62e7c 100644 --- a/src/borg/helpers/checks.py +++ b/src/borg/helpers/checks.py @@ -28,7 +28,7 @@ def check_extension_modules(): raise ExtensionModuleError if borg.crypto.low_level.API_VERSION != '1.1_02': raise ExtensionModuleError - if platform.API_VERSION != platform.OS_API_VERSION != '1.1_03': + if platform.API_VERSION != platform.OS_API_VERSION or platform.API_VERSION != '1.2_01': raise ExtensionModuleError if item.API_VERSION != '1.1_03': raise ExtensionModuleError