From af894b8dbf6306687b8cf4385033971e0488dfd1 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 16 Oct 2023 15:36:30 +0000 Subject: [PATCH] pakfire: Drop the DEBUG flag which now does nothing Signed-off-by: Michael Tremer --- src/_pakfire/pakfire.c | 2 +- src/libpakfire/include/pakfire/pakfire.h | 5 ++--- tests/parser/test.c | 2 +- tests/testsuite.c | 3 +-- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/_pakfire/pakfire.c b/src/_pakfire/pakfire.c index c039251db..4803fff38 100644 --- a/src/_pakfire/pakfire.c +++ b/src/_pakfire/pakfire.c @@ -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) diff --git a/src/libpakfire/include/pakfire/pakfire.h b/src/libpakfire/include/pakfire/pakfire.h index 3ff770fad..50ab5db7b 100644 --- a/src/libpakfire/include/pakfire/pakfire.h +++ b/src/libpakfire/include/pakfire/pakfire.h @@ -40,9 +40,8 @@ struct pakfire; #include 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 diff --git a/tests/parser/test.c b/tests/parser/test.c index 9bf5a5c4a..0344df64f 100644 --- a/tests/parser/test.c +++ b/tests/parser/test.c @@ -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; diff --git a/tests/testsuite.c b/tests/testsuite.c index a28115cdc..689f90b66 100644 --- a/tests/testsuite.c +++ b/tests/testsuite.c @@ -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; -- 2.47.3