Fail if not running as root and --resume is attempted.
authorJason Stubbs <jstubbs@gentoo.org>
Sat, 17 Dec 2005 02:14:56 +0000 (02:14 -0000)
committerJason Stubbs <jstubbs@gentoo.org>
Sat, 17 Dec 2005 02:14:56 +0000 (02:14 -0000)
Patch by Alec Warner (antarus). #114550

svn path=/main/trunk/; revision=2382

bin/emerge

index 4c1db19435cd82fe1d8e6d9b80c3e9c7329a278d..f0ea1bafe32be9eb967e951a793953f6d63a4fb7 100755 (executable)
@@ -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