From 0e255de4bfc5c9edb3587bf01d35a57408df037b Mon Sep 17 00:00:00 2001 From: lxnay Date: Fri, 25 Apr 2008 19:25:57 +0000 Subject: [PATCH] Entropy/Equo: - fix removePackages() questions git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1865 cd1c1023-2f26-0410-ae45-c471fc1f0318 --- client/text_ui.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/client/text_ui.py b/client/text_ui.py index cf77deb03..9bdb1b310 100644 --- a/client/text_ui.py +++ b/client/text_ui.py @@ -886,9 +886,15 @@ def removePackages(packages = [], atomsdata = [], deps = True, deep = False, sys if human: question = " Would you like to proceed with a selective removal ?" rc = Equo.askQuestion(question) - if rc == "Yes": + if rc == "No" and not human: + return 0,0 + elif rc == "Yes" and human: doSelectiveRemoval = True - elif (deps): + elif rc == "No" and human: + rc = Equo.askQuestion(" Would you like to skip this step then ?") + if rc == "Yes": + return 0,0 + elif deps: Equo.entropyTools.countdown(what = red(" @@ ")+blue("Starting removal in "),back = True) for idpackage in plainRemovalQueue: # append at the end requested packages if not in queue