aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorkitsunyan2018-04-09 19:19:38 +0000
committerkitsunyan2018-04-09 19:19:38 +0000
commit03c0242805a02dc90f3ab92f1aba2ba2f68200b5 (patch)
tree4f953a0c41c7318c13fbf0b83b3a74b6e204dac9 /src
parentd01a94e1ea2ba514dc02581fd136af44b5ce938e (diff)
Allow to use comma to separate "--ignore" and "--ignoregroup" args
Diffstat (limited to 'src')
-rw-r--r--src/pacman.nim6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/pacman.nim b/src/pacman.nim
index b8c62b5..1db5738 100644
--- a/src/pacman.nim
+++ b/src/pacman.nim
@@ -349,8 +349,10 @@ proc obtainPacmanConfig*(args: seq[Argument]): PacmanConfig =
let debug = args.check((none(string), "debug"))
let progressBar = not args.check((none(string), "noprogressbar"))
- let ignorePkgs = getAll((none(string), "ignore")).toSet
- let ignoreGroups = getAll((none(string), "ignoregroups")).toSet
+ let ignorePkgs = lc[x | (y <- getAll((none(string), "ignore")),
+ x <- y.split(',')), string].toSet
+ let ignoreGroups = lc[x | (y <- getAll((none(string), "ignoregroups")),
+ x <- y.split(',')), string].toSet
let hasKeyserver = forkWaitRedirect(() => (block:
dropPrivileges()