Drop from --ask to --pretend for uninstall all actions.
authorZac Medico <zmedico@gentoo.org>
Sun, 19 Apr 2009 21:23:21 +0000 (21:23 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 19 Apr 2009 21:23:21 +0000 (21:23 -0000)
svn path=/main/trunk/; revision=13374

pym/_emerge/__init__.py

index 68c51725f7429880c9e3045564783199f9d2d713..78f58b526f7fa35ad820c9908bafc4d2153965f0 100644 (file)
@@ -16125,7 +16125,8 @@ def emerge_main():
        if portage.secpass < 2:
                # We've already allowed "--version" and "--help" above.
                if "--pretend" not in myopts and myaction not in ("search","info"):
-                       need_superuser = myaction in ('deselect',) or not \
+                       need_superuser = myaction in ('clean', 'depclean', 'deselect',
+                               'prune', 'unmerge') or not \
                                (fetchonly or \
                                (buildpkgonly and secpass >= 1) or \
                                myaction in ("metadata", "regen") or \