]> git.ipfire.org Git - pakfire.git/commitdiff
repo: Don't do any path voodoo for internal repositories
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 30 Jan 2025 19:31:36 +0000 (19:31 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 30 Jan 2025 19:31:36 +0000 (19:31 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/repo.c

index 4062e1e03c14a9d4de32cbea9fa00d43abffa6b3..4c3c5d5bf99e930af9f385424b223384dbdb8e74 100644 (file)
@@ -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,