From: Michael Tremer Date: Tue, 9 Feb 2021 18:18:22 +0000 (+0000) Subject: pakfire: Automatically create the installed repository X-Git-Tag: 0.9.28~1285^2~776 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f2019807e259c4e604dce489e6bbd2214de07064;p=pakfire.git pakfire: Automatically create the installed repository Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/pakfire.c b/src/libpakfire/pakfire.c index 1d0d5f08a..7ec15acf2 100644 --- a/src/libpakfire/pakfire.c +++ b/src/libpakfire/pakfire.c @@ -102,10 +102,17 @@ static int pakfire_populate_pool(Pakfire pakfire) { if (r) return r; - // TODO + // Create the system repository + PakfireRepo repo = pakfire_repo_create(pakfire, "@local"); + if (!repo) + return 1; + + // Set this repository as the installed one + pakfire_set_installed_repo(pakfire, repo); // Free database pakfire_db_unref(db); + pakfire_repo_unref(repo); return 0; }