For bug #158354, make "No" the default response for unmerge actions.
authorZac Medico <zmedico@gentoo.org>
Mon, 18 Dec 2006 06:22:40 +0000 (06:22 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 18 Dec 2006 06:22:40 +0000 (06:22 -0000)
svn path=/main/trunk/; revision=5318

bin/emerge

index 07b9d46bcd87849564531e7fc6c5163923f401f5..edccaf4fc260f3a760b02e3e0f1ac115ad7797d3 100755 (executable)
@@ -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