Date: Sunday, January 1, 2023 @ 19:19:04 Author: freswa Revision: 1372823
upgpkg: ansible-lint 6.10.2-1 Modified: ansible-lint/trunk/PKGBUILD ansible-lint/trunk/disable_version_check.patch -----------------------------+ PKGBUILD | 4 ++-- disable_version_check.patch | 15 +++++++-------- 2 files changed, 9 insertions(+), 10 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2023-01-01 19:03:17 UTC (rev 1372822) +++ PKGBUILD 2023-01-01 19:19:04 UTC (rev 1372823) @@ -3,7 +3,7 @@ # Contributor: Sander Boom <[email protected]> pkgname=ansible-lint -pkgver=6.10.1 +pkgver=6.10.2 pkgrel=1 pkgdesc="Checks playbooks for practices and behaviour that could potentially be improved." arch=('any') @@ -16,7 +16,7 @@ source=(git+https://github.com/ansible/ansible-lint.git#tag=v${pkgver} disable_version_check.patch) b2sums=('SKIP' - '09a8a69cd2953e6f0b813976fae31388db87647e80ef7942a960adf1cf71e6a843ed86a2456e718042c790a8481db3bb2f7092c52c9553950cc05f46fe7ee35f') + '98294f267ca693c0bc3921f8e076d674a219a891502cd31a0af789bc0b1447b53834b9c85853a134f6bc1ac384f31cb174cba2d55fbcc1636cae9bd3c0bd8f84') prepare() { cd ${pkgname} Modified: disable_version_check.patch =================================================================== --- disable_version_check.patch 2023-01-01 19:03:17 UTC (rev 1372822) +++ disable_version_check.patch 2023-01-01 19:19:04 UTC (rev 1372823) @@ -12,17 +12,16 @@ --- a/src/ansiblelint/app.py +++ b/src/ansiblelint/app.py @@ -290,11 +290,6 @@ warn_list: # or 'skip_list' to silence them completely - msg += f", and fixed {summary.fixed} issue(s)" - msg += f" on {files_count} files." - -- if not self.options.offline: + + # on offline mode and when run under pre-commit we do not want to + # check for updates. +- if not self.options.offline and os.environ.get("PRE_COMMIT", "0") != "1": - version_warning = get_version_warning() - if version_warning: - msg += f"\n{version_warning}" - console_stderr.print(msg) - - --- + + +-- 2.38.1 -
