db: reset broken pkg state on reinstall

cute-signatures
Timo Teräs 2013-06-21 11:45:03 +03:00
parent f28e77b64d
commit 654ddbf05f
1 changed files with 2 additions and 0 deletions

View File

@ -2635,6 +2635,8 @@ int apk_db_install_pkg(struct apk_database *db, struct apk_package *oldpkg,
/* Install the new stuff */
ipkg = apk_pkg_install(db, newpkg);
ipkg->run_all_triggers = 1;
ipkg->broken_script = 0;
ipkg->broken_files = 0;
if (ipkg->triggers->num != 0) {
list_del(&ipkg->trigger_pkgs_list);
list_init(&ipkg->trigger_pkgs_list);