Yedidyah Bar David has uploaded a new change for review.

Change subject: packaging: setup: also consider file groups in cleanup
......................................................................

packaging: setup: also consider file groups in cleanup

Change-Id: Ia25acec388c913f1d81c7cde3f43bda29a9013ae
Signed-off-by: Yedidyah Bar David <[email protected]>
---
M packaging/setup/plugins/ovirt-engine-remove/base/core/misc.py
1 file changed, 13 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/68/31468/1

diff --git a/packaging/setup/plugins/ovirt-engine-remove/base/core/misc.py 
b/packaging/setup/plugins/ovirt-engine-remove/base/core/misc.py
index 99f6f6d..15138a1 100644
--- a/packaging/setup/plugins/ovirt-engine-remove/base/core/misc.py
+++ b/packaging/setup/plugins/ovirt-engine-remove/base/core/misc.py
@@ -162,14 +162,25 @@
                     'All the installed ovirt components are about to be '
                     'removed, data will be lost (@VALUES@) [@DEFAULT@]: '
                 )
-            elif self.environment[osetupcons.RemoveEnv.REMOVE_OPTIONS]:
+            elif (
+                self.environment[osetupcons.RemoveEnv.REMOVE_OPTIONS] or
+                self.environment[osetupcons.RemoveEnv.REMOVE_GROUPS]
+            ):
                 cnote = _(
-                    '{clist} is/are about to be removed, data will be lost '
+                    'The following components are about to be removed, data '
+                    'will be lost:\n'
+                    '{clist}'
                     '(@VALUES@) [@DEFAULT@]: '
                 ).format(
                     clist=', '.join(
                         self.environment[
                             osetupcons.RemoveEnv.REMOVE_OPTIONS
+                        ] + [
+                            x.strip()
+                            for x in self.environment[
+                                osetupcons.RemoveEnv.REMOVE_GROUPS
+                            ].split(',')
+                            if x
                         ]
                     )
                 )


-- 
To view, visit http://gerrit.ovirt.org/31468
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia25acec388c913f1d81c7cde3f43bda29a9013ae
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Yedidyah Bar David <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to