diff options
author | Gavin Lloyd | 2019-02-07 06:09:31 +0000 |
---|---|---|
committer | Gavin Lloyd | 2019-02-07 06:09:31 +0000 |
commit | 1f6a5c6188a80bab511f56cb36eae824765c89d6 (patch) | |
tree | c37e5254a55070ad89be19edd045f536ce7c03d7 /src/feature | |
parent | fbb01f7d7c5d3b9830b2cb30b60302711f9e278e (diff) |
Add 'PrintLocalIsNewer' config option
Print warnings during upgrade operation when local packages are newer
than those found in remote repositories.
This was previously a default option, now added as a default config
option in pakku.conf.
Diffstat (limited to 'src/feature')
-rw-r--r-- | src/feature/syncinstall.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/feature/syncinstall.nim b/src/feature/syncinstall.nim index cd9240c..a5e9883 100644 --- a/src/feature/syncinstall.nim +++ b/src/feature/syncinstall.nim @@ -844,7 +844,7 @@ proc printAllWarnings(config: Config, installed: seq[Installed], rpcInfos: seq[R not rpcInfoTable.hasKey(inst.name): printWarning(config.color, tr"$# was not found in AUR" % [inst.name]) - if upgradeCount == 1: + if upgradeCount == 1 and config.printLocalIsNewer: for localIsNewer in localIsNewerSeq: printWarning(config.color, tra("%s: local (%s) is newer than %s (%s)\n") % [localIsNewer.name, localIsNewer.version, config.aurRepo, localIsNewer.aurVersion]) |