From f2019807e259c4e604dce489e6bbd2214de07064 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 9 Feb 2021 18:18:22 +0000 Subject: [PATCH] pakfire: Automatically create the installed repository Signed-off-by: Michael Tremer --- src/libpakfire/pakfire.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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; } -- 2.47.2