diff options
author | Timo Teräs <timo.teras@iki.fi> | 2013-06-21 11:45:03 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2013-06-21 11:45:03 +0300 |
commit | 654ddbf05fac1adaa4b175372c594578ec967f7d (patch) | |
tree | 7306909d1600fca8dc4c025c89f06d86daab74e9 | |
parent | f28e77b64d67f8833a66b0878ff695d51d5003c7 (diff) | |
download | apk-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
-rw-r--r-- | src/database.c | 2 |
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); |