diff --git a/borg/chunker.pyx b/borg/chunker.pyx index 0faa06f38..7ac664ed7 100644 --- a/borg/chunker.pyx +++ b/borg/chunker.pyx @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -API_VERSION = 2 +API_VERSION = '1.0_01' from libc.stdlib cimport free diff --git a/borg/crypto.pyx b/borg/crypto.pyx index f7beb3433..e4b3322fa 100644 --- a/borg/crypto.pyx +++ b/borg/crypto.pyx @@ -8,7 +8,7 @@ from math import ceil from libc.stdlib cimport malloc, free -API_VERSION = 3 +API_VERSION = '1.0_01' cdef extern from "openssl/rand.h": int RAND_bytes(unsigned char *buf, int num) diff --git a/borg/hashindex.pyx b/borg/hashindex.pyx index a27d0e8fc..1b0d07c2f 100644 --- a/borg/hashindex.pyx +++ b/borg/hashindex.pyx @@ -4,7 +4,7 @@ import os cimport cython from libc.stdint cimport uint32_t, UINT32_MAX, uint64_t -API_VERSION = 3 +API_VERSION = '1.0_01' cdef extern from "_hashindex.c": diff --git a/borg/helpers.py b/borg/helpers.py index 7c4a0fa91..4edb0313c 100644 --- a/borg/helpers.py +++ b/borg/helpers.py @@ -88,13 +88,13 @@ class PlaceholderError(Error): def check_extension_modules(): from . import platform - if hashindex.API_VERSION != 3: + if hashindex.API_VERSION != '1.0_01': raise ExtensionModuleError - if chunker.API_VERSION != 2: + if chunker.API_VERSION != '1.0_01': raise ExtensionModuleError - if crypto.API_VERSION != 3: + if crypto.API_VERSION != '1.0_01': raise ExtensionModuleError - if platform.API_VERSION != 3: + if platform.API_VERSION != '1.0_01': raise ExtensionModuleError diff --git a/borg/platform.py b/borg/platform.py index be7a2bcd1..652ff8966 100644 --- a/borg/platform.py +++ b/borg/platform.py @@ -30,7 +30,7 @@ def umount(mountpoint): elif sys.platform == 'darwin': # pragma: darwin only from .platform_darwin import acl_get, acl_set, API_VERSION else: # pragma: unknown platform only - API_VERSION = 3 + API_VERSION = '1.0_01' def acl_get(path, item, st, numeric_owner=False): pass diff --git a/borg/platform_darwin.pyx b/borg/platform_darwin.pyx index 4dc25b83a..e421ce289 100644 --- a/borg/platform_darwin.pyx +++ b/borg/platform_darwin.pyx @@ -1,7 +1,7 @@ import os from .helpers import user2uid, group2gid, safe_decode, safe_encode -API_VERSION = 3 +API_VERSION = '1.0_01' cdef extern from "sys/acl.h": ctypedef struct _acl_t: diff --git a/borg/platform_freebsd.pyx b/borg/platform_freebsd.pyx index ae69af68a..27796c318 100644 --- a/borg/platform_freebsd.pyx +++ b/borg/platform_freebsd.pyx @@ -1,7 +1,7 @@ import os from .helpers import posix_acl_use_stored_uid_gid, safe_encode, safe_decode -API_VERSION = 3 +API_VERSION = '1.0_01' cdef extern from "errno.h": int errno diff --git a/borg/platform_linux.pyx b/borg/platform_linux.pyx index 0185268c1..5f1e8aef2 100644 --- a/borg/platform_linux.pyx +++ b/borg/platform_linux.pyx @@ -4,7 +4,7 @@ import subprocess from stat import S_ISLNK from .helpers import posix_acl_use_stored_uid_gid, user2uid, group2gid, safe_decode, safe_encode -API_VERSION = 3 +API_VERSION = '1.0_01' cdef extern from "sys/types.h": int ACL_TYPE_ACCESS