summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Stubbs <jstubbs@gentoo.org>2005-12-17 02:14:56 +0000
committerJason Stubbs <jstubbs@gentoo.org>2005-12-17 02:14:56 +0000
commitd051977240ac2371346d2d9417cf41ffca92089c (patch)
tree5bcd0949b0224fb821917058d485780a83d8ed7d
parent5beb228750198902143da317c02579978e81a704 (diff)
downloadportage-d051977240ac2371346d2d9417cf41ffca92089c.tar.gz
portage-d051977240ac2371346d2d9417cf41ffca92089c.tar.bz2
portage-d051977240ac2371346d2d9417cf41ffca92089c.zip
Fail if not running as root and --resume is attempted.
Patch by Alec Warner (antarus). #114550 svn path=/main/trunk/; revision=2382
-rwxr-xr-xbin/emerge2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/emerge b/bin/emerge
index 4c1db1943..f0ea1bafe 100755
--- a/bin/emerge
+++ b/bin/emerge
@@ -627,7 +627,7 @@ elif "--help" in myopts:
elif portage.secpass!=2:
if myaction in ["search", "info", "regen", "metadata"]:
pass
- elif (not myaction) and (not myfiles):
+ elif not myaction and not myfiles and "--resume" not in myopts:
pass
elif ("--pretend" in myopts) and (myaction in ["world","system","clean","prune","unmerge"]):
pass