]> git.ipfire.org Git - pakfire.git/commitdiff
pakfire: Drop the DEBUG flag which now does nothing
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 16 Oct 2023 15:36:30 +0000 (15:36 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 16 Oct 2023 15:36:30 +0000 (15:36 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/_pakfire/pakfire.c
src/libpakfire/include/pakfire/pakfire.h
tests/parser/test.c
tests/testsuite.c

index c039251db556282690e649c2d18c54feb37992b8..4803fff38104562e83baed8826d4225a170a57fd 100644 (file)
@@ -84,7 +84,7 @@ static int Pakfire_init(PakfireObject* self, PyObject* args, PyObject* kwds) {
                        goto ERROR;
        }
 
-       int flags = PAKFIRE_FLAGS_DEBUG;
+       int flags = 0;
 
        // Enable offline mode
        if (offline)
index 3ff770fadb796e466bc0dc26c12a3dc390f9c8a4..50ab5db7ba82fe22e0ae4b228ac18050ea745e32 100644 (file)
@@ -40,9 +40,8 @@ struct pakfire;
 #include <pakfire/transaction.h>
 
 enum pakfire_flags {
-       PAKFIRE_FLAGS_DEBUG             = (1 << 0),
-       PAKFIRE_FLAGS_BUILD             = (1 << 1),
-       PAKFIRE_FLAGS_OFFLINE                   = (1 << 2),
+       PAKFIRE_FLAGS_BUILD             = (1 << 0),
+       PAKFIRE_FLAGS_OFFLINE                   = (1 << 1),
 };
 
 // Callbacks
index 9bf5a5c4a6bce5baae143782b6587b148d671673..0344df64f809b69d9e2840f874b3bdc7133876f9 100644 (file)
@@ -55,7 +55,7 @@ int main(int argc, const char* argv[]) {
        pakfire_ctx_set_log_callback(ctx, pakfire_log_stderr, NULL);
 
        // Create a pakfire instance
-       r = pakfire_create(&pakfire, ctx, root, NULL, NULL, PAKFIRE_FLAGS_DEBUG);
+       r = pakfire_create(&pakfire, ctx, root, NULL, NULL, 0);
        if (r) {
                fprintf(stderr, "Could not create Pakfire: %m\n");
                goto ERROR;
index a28115cdc5ee1ff512f185dd6501c3018656787b..689f90b6622f44ae9373666f43ae453d1f0d5169 100644 (file)
@@ -37,7 +37,6 @@ static int test_run(int i, struct test* t) {
        struct pakfire_ctx* ctx = NULL;
        struct pakfire* p = NULL;
        FILE* c = NULL;
-       const int flags = PAKFIRE_FLAGS_DEBUG;
 
        char root[PATH_MAX] = TEST_ROOTFS "/pakfire-test-XXXXXX";
        int r;
@@ -73,7 +72,7 @@ static int test_run(int i, struct test* t) {
        }
 
        // Create a pakfire instance
-       r = pakfire_create(&t->pakfire, ctx, root, NULL, c, flags);
+       r = pakfire_create(&t->pakfire, ctx, root, NULL, c, 0);
        if (r) {
                LOG("ERROR: Could not initialize pakfire: %m\n");
                goto ERROR;