diff options
author | kitsunyan | 2018-04-07 20:55:21 +0000 |
---|---|---|
committer | kitsunyan | 2018-04-07 20:55:21 +0000 |
commit | 769413c9f01676658acd33fedd90c038335af835 (patch) | |
tree | 9ac42383440bc94f733390d7dd7c3e6cc82d59a3 /src/config.nim | |
parent | de68bfe8a9947f26140da91a6ce26f49e5165738 (diff) |
Allow to specify pre-build command
Diffstat (limited to 'src/config.nim')
-rw-r--r-- | src/config.nim | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/config.nim b/src/config.nim index 629cdfa..25ab011 100644 --- a/src/config.nim +++ b/src/config.nim @@ -33,6 +33,7 @@ type checkIgnored*: bool printAurNotFound*: bool viewNoDefault*: bool + preBuildCommand*: Option[string] proc readConfigFile*(configFile: string): (OrderedTable[string, ref Table[string, string]], bool) = @@ -118,10 +119,11 @@ proc obtainConfig*(config: PacmanConfig): Config = let checkIgnored = options.hasKey("CheckIgnored") let printAurNotFound = options.hasKey("PrintAurNotFound") let viewNoDefault = options.hasKey("ViewNoDefault") + let preBuildCommand = options.opt("PreBuildCommand") Config(root: root, db: db, tmpRoot: tmpRoot, color: color, dbs: config.dbs, arch: config.arch, debug: config.debug, progressBar: config.progressBar, verbosePkgList: config.verbosePkgList, pgpKeyserver: config.pgpKeyserver, ignorePkgs: config.ignorePkgs, ignoreGroups: config.ignoreGroups, - aurComments: aurComments, checkIgnored: checkIgnored, - printAurNotFound: printAurNotFound, viewNoDefault: viewNoDefault) + aurComments: aurComments, checkIgnored: checkIgnored, printAurNotFound: printAurNotFound, + viewNoDefault: viewNoDefault, preBuildCommand: preBuildCommand) |