aboutsummaryrefslogtreecommitdiff
path: root/src/main.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.nim')
-rw-r--r--src/main.nim9
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"])