From: Michael Tremer Date: Thu, 30 Jan 2025 17:06:23 +0000 (+0000) Subject: repo: Pass on the correct error code if we could not open the database X-Git-Tag: 0.9.30~246 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b87f56c26d470ffe5434109d9b6be1b20a0a1a6;p=pakfire.git repo: Pass on the correct error code if we could not open the database Signed-off-by: Michael Tremer --- diff --git a/src/pakfire/repo.c b/src/pakfire/repo.c index 671297c0..4062e1e0 100644 --- a/src/pakfire/repo.c +++ b/src/pakfire/repo.c @@ -579,7 +579,7 @@ static int pakfire_repo_read_database(struct pakfire_repo* repo, const char* pat f = fopen(path, "r"); if (!f) { ERROR(repo->ctx, "Could not open package database at %s: %m\n", path); - r = 1; + r = -errno; goto ERROR; }