summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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: