From ca781c224fe3ae775429ec9ce9572e4e49db2c5e Mon Sep 17 00:00:00 2001 From: SONOLET Aymeric Date: Wed, 31 Jan 2024 14:38:30 +0100 Subject: [PATCH] fix: when products are all already prepared on update do not fail --- commands/update.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/update.py b/commands/update.py index 68bbd18..e0e050f 100644 --- a/commands/update.py +++ b/commands/update.py @@ -132,9 +132,9 @@ class UpdateOp: l_already_prepared = [i for i, tmp in pi_already_prepared] newList, removedList = prepare.removeInList(self.products, l_already_prepared) if len(newList) == 0 and len(removedList) > 0: - msg = "\nAll the products are already installed, do nothing!\n" + msg = "\nAll the products are already installed, do not prepare them\n" self.logger.write(src.printcolors.printcWarning(msg), 1) - return 0 + return [] if len(removedList) > 0: msg = ( "\nList of already prepared products that are skipped : %s\n" -- 2.39.2