aboutsummaryrefslogtreecommitdiff
path: root/src/config.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.nim')
-rw-r--r--src/config.nim6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/config.nim b/src/config.nim
index 699f12a..fb1f3ae 100644
--- a/src/config.nim
+++ b/src/config.nim
@@ -47,6 +47,7 @@ type
checkIgnored*: bool
ignoreArch*: bool
printAurNotFound*: bool
+ printLocalIsNewer*: bool
sudoExec*: bool
viewNoDefault*: bool
preserveBuilt*: PreserveBuilt
@@ -155,6 +156,7 @@ proc obtainConfig*(config: PacmanConfig): Config =
let checkIgnored = options.hasKey("CheckIgnored")
let ignoreArch = options.hasKey("IgnoreArch")
let printAurNotFound = options.hasKey("PrintAurNotFound")
+ let printLocalIsNewer = options.hasKey("PrintLocalIsNewer")
let sudoExec = options.hasKey("SudoExec")
let viewNoDefault = options.hasKey("ViewNoDefault")
let preserveBuilt = toSeq(enumerate[PreserveBuilt]())
@@ -179,8 +181,8 @@ proc obtainConfig*(config: PacmanConfig): Config =
userCacheCurrent: userCacheCurrent, tmpRootInitial: tmpRootInitial,
tmpRootCurrent: tmpRootCurrent, color: color, aurRepo: aurRepo, aurComments: aurComments,
checkIgnored: checkIgnored, ignoreArch: ignoreArch, printAurNotFound: printAurNotFound,
- sudoExec: sudoExec, viewNoDefault: viewNoDefault, preserveBuilt: preserveBuilt,
- preBuildCommand: preBuildCommand)
+ printLocalIsNewer: printLocalIsNewer, sudoExec: sudoExec, viewNoDefault: viewNoDefault,
+ preserveBuilt: preserveBuilt, preBuildCommand: preBuildCommand)
template withAlpmConfig*(config: Config, passDbs: bool,
handle: untyped, alpmDbs: untyped, errors: untyped, body: untyped): untyped =