From: Michael Tremer Date: Thu, 30 Jan 2025 19:31:36 +0000 (+0000) Subject: repo: Don't do any path voodoo for internal repositories X-Git-Tag: 0.9.30~244 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c0d3a466f382ac406aef5958e734ff6b90289289;p=pakfire.git repo: Don't do any path voodoo for internal repositories Signed-off-by: Michael Tremer --- diff --git a/src/pakfire/repo.c b/src/pakfire/repo.c index 4062e1e0..4c3c5d5b 100644 --- a/src/pakfire/repo.c +++ b/src/pakfire/repo.c @@ -209,9 +209,13 @@ int __pakfire_repo_path(struct pakfire_repo* repo, va_start(args, format); r = __pakfire_string_vformat(buffer, sizeof(buffer), format, args); va_end(args); - if (r) + if (r < 0) return r; + // For any internal repositories we are done + if (pakfire_repo_is_internal(repo)) + return __pakfire_string_set(path, length, buffer); + // For local repositories return the local path if (pakfire_repo_is_local(repo)) return __pakfire_string_format(path, length,