diff options
author | kitsunyan | 2018-06-09 21:03:03 +0000 |
---|---|---|
committer | kitsunyan | 2018-06-09 21:03:03 +0000 |
commit | 7accdb6dab38f0ecb49669b7ddc04dc4f5facd14 (patch) | |
tree | 3bb6dd6ce685551015eb64d802ee737ded48eef5 /src/config.nim | |
parent | 0b6c3e6732c5c0d5b6613d2fe450c3b7760c0827 (diff) |
Allow to ignore arch in PKGBUILD
Diffstat (limited to 'src/config.nim')
-rw-r--r-- | src/config.nim | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/config.nim b/src/config.nim index a0c8281..1937ed3 100644 --- a/src/config.nim +++ b/src/config.nim @@ -45,6 +45,7 @@ type aurRepo*: string aurComments*: bool checkIgnored*: bool + ignoreArch*: bool printAurNotFound*: bool sudoExec*: bool viewNoDefault*: bool @@ -152,6 +153,7 @@ proc obtainConfig*(config: PacmanConfig): Config = let aurRepo = options.opt("AurRepo").get("aur") let aurComments = options.hasKey("AurComments") let checkIgnored = options.hasKey("CheckIgnored") + let ignoreArch = options.hasKey("IgnoreArch") let printAurNotFound = options.hasKey("PrintAurNotFound") let sudoExec = options.hasKey("SudoExec") let viewNoDefault = options.hasKey("ViewNoDefault") @@ -176,8 +178,9 @@ proc obtainConfig*(config: PacmanConfig): Config = root: root, db: db, cache: cache, userCacheInitial: userCacheInitial, userCacheCurrent: userCacheCurrent, tmpRootInitial: tmpRootInitial, tmpRootCurrent: tmpRootCurrent, color: color, aurRepo: aurRepo, aurComments: aurComments, - checkIgnored: checkIgnored, printAurNotFound: printAurNotFound, sudoExec: sudoExec, - viewNoDefault: viewNoDefault, preserveBuilt: preserveBuilt, preBuildCommand: preBuildCommand) + checkIgnored: checkIgnored, ignoreArch: ignoreArch, printAurNotFound: printAurNotFound, + sudoExec: sudoExec, viewNoDefault: viewNoDefault, preserveBuilt: preserveBuilt, + preBuildCommand: preBuildCommand) template withAlpmConfig*(config: Config, passDbs: bool, handle: untyped, alpmDbs: untyped, errors: untyped, body: untyped): untyped = |