Drop from --ask to --pretend for uninstall all actions. (trunk r13374)
authorZac Medico <zmedico@gentoo.org>
Thu, 30 Apr 2009 07:21:14 +0000 (07:21 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 30 Apr 2009 07:21:14 +0000 (07:21 -0000)
svn path=/main/branches/2.1.6/; revision=13527

pym/_emerge/__init__.py

index d1817e55c304167bf690b3f99c211a43fae3d7bd..879579bb94bae91150253e0d2a2b142a9b4312af 100644 (file)
@@ -15634,7 +15634,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 \