diff options
author | kitsunyan | 2018-05-07 16:01:10 +0000 |
---|---|---|
committer | kitsunyan | 2018-05-07 16:01:10 +0000 |
commit | 9b5a3059c0b123e7f6dd70ab2d88c79b75c88745 (patch) | |
tree | af43cf4e261bdfddb25062a77eb038b57c7f7fdd /src/main.nim | |
parent | 285700719d68891532c3714255ac3e3b3d2870d3 (diff) |
Add support for "--nodeps" and "--assume-installed" options
Diffstat (limited to 'src/main.nim')
-rw-r--r-- | src/main.nim | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/main.nim b/src/main.nim index 6280943..1d35929 100644 --- a/src/main.nim +++ b/src/main.nim @@ -95,21 +95,17 @@ proc handleSync(args: seq[Argument], config: Config): int = execResult(collectedArgs) else: let isNonDefaultRoot = not config.isRootDefault - let isSkipDeps = args.check(%%%"nodeps") or args.check(%%%"assume-installed") let isRootNoDrop = currentUser.uid == 0 and not canDropPrivileges() let build = args.check(%%%"build") let noaur = args.check(%%%"noaur") - let noBuild = isNonDefaultRoot or isSkipDeps or isRootNoDrop + let noBuild = isNonDefaultRoot or isRootNoDrop if not printMode and build and noBuild: if isNonDefaultRoot: printError(config.color, tr"non-default root path is specified" & " -- " & tr"building is not allowed") - elif isSkipDeps: - printError(config.color, tr"dependency check is skipped" & " -- " & - tr"building is not allowed") elif isRootNoDrop: printError(config.color, tr"running as root" & " -- " & tr"building is not allowed") @@ -121,9 +117,6 @@ proc handleSync(args: seq[Argument], config: Config): int = if isNonDefaultRoot: printWarning(config.color, tr"non-default root path is specified" & " -- " & tr"'$#' is assumed" % ["--noaur"]) - elif isSkipDeps: - printWarning(config.color, tr"dependency check is skipped" & " -- " & - tr"'$#' is assumed" % ["--noaur"]) elif isRootNoDrop: printWarning(config.color, tr"running as root" & " -- " & tr"'$#' is assumed" % ["--noaur"]) |