From 9b5a3059c0b123e7f6dd70ab2d88c79b75c88745 Mon Sep 17 00:00:00 2001 From: kitsunyan Date: Mon, 7 May 2018 19:01:10 +0300 Subject: Add support for "--nodeps" and "--assume-installed" options --- src/main.nim | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/main.nim') 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"]) -- cgit v1.2.3-70-g09d2