From 35e5d99e32b6b980adfaa1e86fbc7105d8a68c59 Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Sat, 9 Sep 2023 10:38:46 +0200 Subject: [PATCH] './unrealircd module upgrade' only showed output for one module upgrade, even when multiple modules were upgraded. Actually not sure about the cause and how this is possible, but running 'make install' only once at the end is the solution, which is something that should be done that way anyway. Reported by westor in https://bugs.unrealircd.org/view.php?id=5919 --- src/modulemanager.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modulemanager.c b/src/modulemanager.c index 8aa8d1b38..1014c8e0c 100644 --- a/src/modulemanager.c +++ b/src/modulemanager.c @@ -1419,6 +1419,7 @@ void mm_upgrade(int argc, char *args[]) } /* Without arguments means: check all installed modules */ + no_make_install = 1; for (m = managed_modules; m; m = m->next) { int status = mm_get_module_status(m); @@ -1437,6 +1438,9 @@ void mm_upgrade(int argc, char *args[]) update_unavailable++; } } + no_make_install = 0; + if (upgraded) + mm_make_install(); printf("All actions were successful. %d module(s) upgraded, %d already up-to-date\n", upgraded, uptodate_already); if (update_unavailable)