]> SALOME platform Git repositories - tools/sat.git/commitdiff
Salome HOME
fix: when products are all already prepared on update do not fail
authorSONOLET Aymeric <aymeric.sonolet@cea.fr>
Wed, 31 Jan 2024 13:38:30 +0000 (14:38 +0100)
committerSONOLET Aymeric <aymeric.sonolet@cea.fr>
Fri, 2 Feb 2024 12:25:30 +0000 (13:25 +0100)
commands/update.py

index 68bbd18b2719f94b1be5cf4e429d9182a1d5bbfb..e0e050f027ad7fd15c071b7d326b3d72f45d25fc 100644 (file)
@@ -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"