From: SONOLET Aymeric Date: Wed, 31 Jan 2024 13:38:30 +0000 (+0100) Subject: fix: when products are all already prepared on update do not fail X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ca781c224fe3ae775429ec9ce9572e4e49db2c5e;p=tools%2Fsat.git fix: when products are all already prepared on update do not fail --- 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"