From b4f8782ab5ca934dac8f1c6dad52fbb3755dc005 Mon Sep 17 00:00:00 2001 From: kitsunyan Date: Sat, 5 May 2018 22:11:02 +0300 Subject: Assume "--noaur" if "--assume-installed" provided --- src/main.nim | 2 +- src/pacman.nim | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main.nim b/src/main.nim index 10829b8..6280943 100644 --- a/src/main.nim +++ b/src/main.nim @@ -95,7 +95,7 @@ proc handleSync(args: seq[Argument], config: Config): int = execResult(collectedArgs) else: let isNonDefaultRoot = not config.isRootDefault - let isSkipDeps = args.check(%%%"nodeps") + let isSkipDeps = args.check(%%%"nodeps") or args.check(%%%"assume-installed") let isRootNoDrop = currentUser.uid == 0 and not canDropPrivileges() let build = args.check(%%%"build") diff --git a/src/pacman.nim b/src/pacman.nim index 8b85590..4c55f8e 100644 --- a/src/pacman.nim +++ b/src/pacman.nim @@ -176,11 +176,10 @@ const syncConflictingOptions*: seq[ConflictingOptions] = @[ ("asdeps", @["asexplicit"]), - ("build", @["nodeps", "assume-installed", "dbonly", "clean", - "groups", "info", "list", "search", "sysupgrade", "downloadonly"]), + ("build", @["clean", "groups", "info", "list", "search", "sysupgrade", "downloadonly"]), ("keyserver", @["clean", "groups", "info", "list", "search"]), - ("source", @["clean", "groups", "info", "list", "search", "sysupgrade", - "downloadonly", "build", "keyserver", "noaur"]) + ("source", @["clean", "groups", "info", "list", "search", "sysupgrade", "downloadonly", + "build", "keyserver", "noaur"]) ] allConflictingOptions = syncConflictingOptions -- cgit v1.2.3-70-g09d2