From: Jason Stubbs Date: Sat, 17 Dec 2005 02:14:56 +0000 (-0000) Subject: Fail if not running as root and --resume is attempted. X-Git-Tag: v2.1_pre1~8 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d051977240ac2371346d2d9417cf41ffca92089c;p=portage.git Fail if not running as root and --resume is attempted. Patch by Alec Warner (antarus). #114550 svn path=/main/trunk/; revision=2382 --- 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