]> git.ipfire.org Git - people/stevee/pakfire.git/commitdiff
_pakfire: Avoid multiple definition of exceptions
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 10 Jun 2021 16:58:11 +0000 (16:58 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 10 Jun 2021 16:58:11 +0000 (16:58 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/_pakfire/_pakfiremodule.c
src/_pakfire/errors.h

index ca1dd09f11ba57327c8c2bd48ade7616c9e5bb93..f1f3e804b0ec2a7b28ee7cba72974ae92bde4c6e 100644 (file)
 #include "transaction.h"
 #include "util.h"
 
+PyObject* PyExc_BadSignatureError;
+PyObject* PyExc_CommandExecutionError;
+PyObject* PyExc_DependencyError;
+
 static PyObject* _pakfire_native_arch() {
        const char* arch = pakfire_arch_native();
        if (!arch)
index 76b94418aff2773fc4e311ad4554d9a460a7b08e..52a52e8960c6dfc03e6329646dd3adf4d6142c4a 100644 (file)
@@ -24,8 +24,8 @@
 #include <Python.h>
 
 // Exceptions
-PyObject* PyExc_BadSignatureError;
-PyObject* PyExc_CommandExecutionError;
-PyObject* PyExc_DependencyError;
+extern PyObject* PyExc_BadSignatureError;
+extern PyObject* PyExc_CommandExecutionError;
+extern PyObject* PyExc_DependencyError;
 
 #endif /* PYTHON_PAKFIRE_ERRORS_H */