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) {
pakfire_repo_internalize(repo, 0);
pakfire_repo_unref(repo);
}
-}
-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);
- }
+ // Internalize the pool
+ pakfire_pool_internalize(pkg->pakfire);
}
// Removes epoch