From: Michael Tremer Date: Fri, 9 Dec 2022 15:01:02 +0000 (+0000) Subject: Revert "packages: Ensure that the pool is internalized for packages w/o repo" X-Git-Tag: 0.9.28~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=becf17ca22fd5440474e7b2946bf651eae473eed;p=pakfire.git Revert "packages: Ensure that the pool is internalized for packages w/o repo" This reverts commit 2fcc2e22f92577c8bf572a3276445fd6869eb158. Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/package.c b/src/libpakfire/package.c index ea4ccc265..303fd1f4a 100644 --- a/src/libpakfire/package.c +++ b/src/libpakfire/package.c @@ -68,20 +68,6 @@ static Solvable* get_solvable(struct pakfire_package* pkg) { return pool_id2solvable(pool, pkg->id); } -static void pakfire_package_has_changed(struct pakfire_package* pkg) { - struct pakfire_repo* repo = NULL; - - // Mark the repository as changed - repo = pakfire_package_get_repo(pkg); - if (repo) { - pakfire_repo_has_changed(repo); - pakfire_repo_unref(repo); - } - - // Mark the pool as changed, too - pakfire_pool_has_changed(pkg->pakfire); -} - static int pakfire_package_dep2id(const enum pakfire_package_key key, Id* id, Id* marker) { switch (key) { @@ -380,9 +366,14 @@ static void pakfire_package_internalize_repo(struct pakfire_package* pkg) { pakfire_repo_internalize(repo, 0); pakfire_repo_unref(repo); } +} - // Internalize the pool - pakfire_pool_internalize(pkg->pakfire); +static void pakfire_package_has_changed(struct pakfire_package* pkg) { + struct pakfire_repo* repo = pakfire_package_get_repo(pkg); + if (repo) { + pakfire_repo_has_changed(repo); + pakfire_repo_unref(repo); + } } // Removes epoch