From 280c4fc46e8485d52a5faaf4c9585b865080ed7b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 17 Sep 2021 13:03:16 +0200 Subject: Add fallback update-for-uninstall rule to global scope --- libbuild2/install/init.cxx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'libbuild2/install') diff --git a/libbuild2/install/init.cxx b/libbuild2/install/init.cxx index 185fc0f..6f83015 100644 --- a/libbuild2/install/init.cxx +++ b/libbuild2/install/init.cxx @@ -383,12 +383,15 @@ namespace build2 bs.insert_rule (perform_install_id, "install.file", gr); bs.insert_rule (perform_uninstall_id, "uninstall.file", gr); - // Register the fallback file rule for the update-for-install + // Register the fallback file rule for the update-for-[un]install // operation, similar to update. // rs.global_scope ().insert_rule ( - perform_install_id, "install.file", file_rule::instance); - } + perform_install_id, "install.file", fr); + + rs.global_scope ().insert_rule ( + perform_uninstall_id, "uninstall.file", fr); + } // Configuration. // -- cgit v1.1