summaryrefslogtreecommitdiff
path: root/src/database.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-06-21 11:45:03 +0300
committerTimo Teräs <timo.teras@iki.fi>2013-06-21 11:45:03 +0300
commit654ddbf05fac1adaa4b175372c594578ec967f7d (patch)
tree7306909d1600fca8dc4c025c89f06d86daab74e9 /src/database.c
parentf28e77b64d67f8833a66b0878ff695d51d5003c7 (diff)
downloadapk-tools-654ddbf05fac1adaa4b175372c594578ec967f7d.tar.gz
apk-tools-654ddbf05fac1adaa4b175372c594578ec967f7d.tar.bz2
apk-tools-654ddbf05fac1adaa4b175372c594578ec967f7d.tar.xz
apk-tools-654ddbf05fac1adaa4b175372c594578ec967f7d.zip
db: reset broken pkg state on reinstall
Diffstat (limited to 'src/database.c')
-rw-r--r--src/database.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/database.c b/src/database.c
index 919335c..9572c0f 100644
--- a/src/database.c
+++ b/src/database.c
@@ -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);