]> git.ipfire.org Git - pakfire.git/commitdiff
cli: Use import function to import archives
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 30 Jan 2025 10:56:48 +0000 (10:56 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 30 Jan 2025 10:56:48 +0000 (10:56 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/pakfire.c

index 46c2e00b56e31c5873a26a2345522d65f7bf0439..c13ee4fd7b607a487fca08ba308d8f6930da7298 100644 (file)
@@ -1316,7 +1316,7 @@ static int pakfire_commandline_dist(struct pakfire* pakfire, struct pakfire_repo
                goto ERROR;
 
        // Add the archive to the repository
-       r = pakfire_repo_add_archive(repo, archive, pkg);
+       r = pakfire_repo_import_archive(repo, archive, pkg);
        if (r < 0)
                goto ERROR;