aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorkitsunyan2018-05-09 08:56:25 +0000
committerkitsunyan2018-05-09 08:56:25 +0000
commita329e692c9ac316ebacc183dd90d985a66a62cc5 (patch)
tree86f2dda62b3e915ac16a3155eb7be54e3bebad19 /src
parent82ca092752ec95f032c8b10efeff6988816011a4 (diff)
Filter upgrade options for removing build dependencies
Diffstat (limited to 'src')
-rw-r--r--src/feature/syncinstall.nim6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/feature/syncinstall.nim b/src/feature/syncinstall.nim
index 59a6081..c046df4 100644
--- a/src/feature/syncinstall.nim
+++ b/src/feature/syncinstall.nim
@@ -711,9 +711,11 @@ proc confirmViewAndImportKeys(config: Config, basePackages: seq[seq[seq[PackageI
proc removeBuildDependencies(config: Config, commonArgs: seq[Argument],
unrequired: HashSet[string], unrequiredOptional: HashSet[string]): int =
if unrequired.len > 0 or unrequiredOptional.len > 0: (block:
+ let removeArgs = commonArgs.keepOnlyOptions(commonOptions, transactionOptions)
+
let code = if unrequired.len > 0: (block:
printColon(config.color, tr"Removing build dependencies...")
- pacmanRun(true, config.color, commonArgs &
+ pacmanRun(true, config.color, removeArgs &
("R", none(string), ArgumentType.short) &
toSeq(unrequired.items).map(t =>
(t, none(string), ArgumentType.target))))
@@ -722,7 +724,7 @@ proc removeBuildDependencies(config: Config, commonArgs: seq[Argument],
if code == 0 and unrequiredOptional.len > 0:
printColon(config.color, tr"Removing optional build dependencies...")
- pacmanRun(true, config.color, commonArgs &
+ pacmanRun(true, config.color, removeArgs &
("R", none(string), ArgumentType.short) &
toSeq(unrequiredOptional.items).map(t =>
(t, none(string), ArgumentType.target)))