]> git.ipfire.org Git - pakfire.git/commitdiff
Revert "packages: Ensure that the pool is internalized for packages w/o repo"
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 9 Dec 2022 15:01:02 +0000 (15:01 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 9 Dec 2022 15:01:02 +0000 (15:01 +0000)
This reverts commit 2fcc2e22f92577c8bf572a3276445fd6869eb158.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/package.c

index ea4ccc265cbc082a19ebf44f976477a8a65bc4e8..303fd1f4ac26b70bf898429ebdda7a0842791d4b 100644 (file)
@@ -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