From 769413c9f01676658acd33fedd90c038335af835 Mon Sep 17 00:00:00 2001 From: kitsunyan Date: Sat, 7 Apr 2018 23:55:21 +0300 Subject: Allow to specify pre-build command --- src/config.nim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/config.nim') 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) -- cgit v1.2.3-70-g09d2