diff options
author | j-james | 2020-12-23 20:52:52 +0000 |
---|---|---|
committer | j-james | 2020-12-23 20:52:52 +0000 |
commit | 855ba8396725812bee2bf975423700280d3044b1 (patch) | |
tree | c80ee79ba8b59c1745e32c2e39b8401d36e613cb /src/pacman.nim | |
parent | 0601052833bfb97cc178cdbd7aa150ecec4c7e5b (diff) |
Add support for pacman's progress bar Easter eggzqqw
Diffstat (limited to 'src/pacman.nim')
-rw-r--r-- | src/pacman.nim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/pacman.nim b/src/pacman.nim index 5f1cb4a..561d2cb 100644 --- a/src/pacman.nim +++ b/src/pacman.nim @@ -350,6 +350,7 @@ proc createConfigFromTable(table: Table[string, string], dbs: seq[string]): Pacm let cacheRel = table.opt("CacheDir") let gpgRel = table.opt("GPGDir") let color = if table.hasKey("Color"): ColorMode.colorAuto else: ColorMode.colorNever + let chomp = table.hasKey("ILoveCandy") let verbosePkgLists = table.hasKey("VerbosePkgLists") let downloadTimeout = not table.hasKey("DisableDownloadTimeout") let arch = table.opt("Architecture").get("auto") @@ -361,7 +362,7 @@ proc createConfigFromTable(table: Table[string, string], dbs: seq[string]): Pacm raise commandError(tr"can not get the architecture", colorNeeded = some(color.get)) - ((dbs, archFinal, false, true, verbosePkgLists, downloadTimeout, none(string), true, + ((dbs, archFinal, false, true, chomp, verbosePkgLists, downloadTimeout, none(string), true, ignorePkgs, ignoreGroups), none(string), rootRel, dbRel, cacheRel, gpgRel, color) proc obtainPacmanConfig*(args: seq[Argument]): PacmanConfig = @@ -440,7 +441,7 @@ proc obtainPacmanConfig*(args: seq[Argument]): PacmanConfig = let argsRootRel = rootRel.get("/") let defaultRoot = defaultRootRel == argsRootRel - let config: PacmanConfig = ((defaultConfig.common.dbs, arch, debug, progressBar, + let config: PacmanConfig = ((defaultConfig.common.dbs, arch, debug, progressBar, defaultConfig.common.chomp, defaultConfig.common.verbosePkgLists, defaultConfig.common.downloadTimeout and downloadTimeout, pgpKeyserver, defaultRoot, ignorePkgs + defaultConfig.common.ignorePkgs, ignoreGroups + defaultConfig.common.ignoreGroups), |