summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-12-18 06:22:40 +0000
committerZac Medico <zmedico@gentoo.org>2006-12-18 06:22:40 +0000
commit9030636fb3a967865d422c165b5aec014b090ed3 (patch)
tree66c5732a0e735897f06f176d6f1033ec0418669f
parent975efc57f3c2b3798adc046d41dfc3afddbe33a5 (diff)
downloadportage-9030636fb3a967865d422c165b5aec014b090ed3.tar.gz
portage-9030636fb3a967865d422c165b5aec014b090ed3.tar.bz2
portage-9030636fb3a967865d422c165b5aec014b090ed3.zip
For bug #158354, make "No" the default response for unmerge actions.
svn path=/main/trunk/; revision=5318
-rwxr-xr-xbin/emerge3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/emerge b/bin/emerge
index 07b9d46bc..edccaf4fc 100755
--- a/bin/emerge
+++ b/bin/emerge
@@ -3133,7 +3133,8 @@ def unmerge(settings, myopts, vartree, unmerge_action, unmerge_files,
#we're done... return
return 0
if "--ask" in myopts:
- if userquery("Would you like to unmerge these packages?")=="No":
+ if userquery("Would you like to unmerge these packages?",
+ responses=["No", "Yes"], colours=[red, green]) == "No":
# enter pretend mode for correct formatting of results
myopts["--pretend"] = True
print