From 4174291f6f97ead3780593c6295ddce4058a91af Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Fri, 30 Sep 2016 20:38:46 +0200 Subject: [PATCH] hashindex: bump api version API_VERSION is used to check whether the compiled binaries are up-to-date. the tests for the recent iterator fixes of course need updated (fixed) binaries, so we bump api_version, so not-up-to-date binaries will get identified. --- borg/hashindex.pyx | 2 +- borg/helpers.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/borg/hashindex.pyx b/borg/hashindex.pyx index 09ec89614..a27d0e8fc 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 = 2 +API_VERSION = 3 cdef extern from "_hashindex.c": diff --git a/borg/helpers.py b/borg/helpers.py index e7be78cbb..db579d34f 100644 --- a/borg/helpers.py +++ b/borg/helpers.py @@ -80,7 +80,7 @@ class PlaceholderError(Error): def check_extension_modules(): from . import platform - if hashindex.API_VERSION != 2: + if hashindex.API_VERSION != 3: raise ExtensionModuleError if chunker.API_VERSION != 2: raise ExtensionModuleError