summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-05-13 22:19:58 +0000
committerZac Medico <zmedico@gentoo.org>2006-05-13 22:19:58 +0000
commit46c0e4116ed183c0c16c14b61be18661171586a6 (patch)
tree915f0450b2b90ea0afbf5cb0a3cd841ca0906ca8
parent4291dc07cef5ba458fb16512eeec5c41da02fa50 (diff)
downloadportage-46c0e4116ed183c0c16c14b61be18661171586a6.tar.gz
portage-46c0e4116ed183c0c16c14b61be18661171586a6.tar.bz2
portage-46c0e4116ed183c0c16c14b61be18661171586a6.zip
Allow `emerge --metadata` and `emerge --regen` for users in the portage group(bug #133157).
svn path=/main/trunk/; revision=3346
-rwxr-xr-xbin/emerge3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/emerge b/bin/emerge
index 4ff7ab579..c5746aa58 100755
--- a/bin/emerge
+++ b/bin/emerge
@@ -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: