Allow `emerge --metadata` and `emerge --regen` for users in the portage group(bug...
authorZac Medico <zmedico@gentoo.org>
Sat, 13 May 2006 22:19:58 +0000 (22:19 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 13 May 2006 22:19:58 +0000 (22:19 -0000)
svn path=/main/trunk/; revision=3346

bin/emerge

index 4ff7ab5797c12a3b281791fb109e2da6a30f7fb6..c5746aa589d14a444b67669004d6b81f75ccaaa2 100755 (executable)
@@ -631,7 +631,8 @@ if portage.secpass < 2:
        myaction not in ("search","info"):
                if portage.secpass >= 1:
                        if "--fetchonly" not in myopts and \
-                       "--fetch-all-uri" not in myopts:
+                       "--fetch-all-uri" not in myopts and \
+                       myaction not in ("metadata", "regen"):
                                print "emerge: root access required."
                                sys.exit(1)
                else: