From 654ddbf05fac1adaa4b175372c594578ec967f7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= Date: Fri, 21 Jun 2013 11:45:03 +0300 Subject: [PATCH] db: reset broken pkg state on reinstall --- src/database.c | 2 ++ 1 file changed, 2 insertions(+) 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);