From 0fe65fbf33fd75bb185be4cf491ec3b994f4b813 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Wed, 15 Feb 2023 20:00:25 +0100 Subject: [PATCH] python3-ansible-lint: update to 6.13.0. --- .../0002-fix-ignore-file-generation.patch | 34 +++++++++++++++++++ srcpkgs/python3-ansible-lint/template | 4 +-- 2 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/python3-ansible-lint/patches/0002-fix-ignore-file-generation.patch diff --git a/srcpkgs/python3-ansible-lint/patches/0002-fix-ignore-file-generation.patch b/srcpkgs/python3-ansible-lint/patches/0002-fix-ignore-file-generation.patch new file mode 100644 index 000000000000..7e80279e1b61 --- /dev/null +++ b/srcpkgs/python3-ansible-lint/patches/0002-fix-ignore-file-generation.patch @@ -0,0 +1,34 @@ +From 6c1efd11685ec829abcf944159012bd26a50a62c Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= + +Date: Wed, 15 Feb 2023 19:22:48 +0100 +Subject: [PATCH 2/2] fix ignore file generation + +Previously, generated ignore files didn't put newlines between separate +ignores. We're now appending `\n` to each line before writing them out. +--- + src/ansiblelint/app.py | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/src/ansiblelint/app.py b/src/ansiblelint/app.py +index b87dcc66..8f1c45c0 100644 +--- a/src/ansiblelint/app.py ++++ b/src/ansiblelint/app.py +@@ -171,13 +171,12 @@ class App: + console_stderr.print(f"Writing ignore file to {IGNORE_TXT}") + lines = set() + for rule in result.matches: +- lines.add(f"{rule.filename} {rule.tag}") ++ lines.add(f"{rule.filename} {rule.tag}\n") + with open(IGNORE_TXT, "w", encoding="utf-8") as ignore_file: + ignore_file.write( + "# This file contains ignores rule violations for ansible-lint\n" + ) + ignore_file.writelines(sorted(list(lines))) +- ignore_file.write("\n") + elif matched_rules and not self.options.quiet: + console_stderr.print( + "Read [link=https://ansible-lint.readthedocs.io/configuring/#ignoring-rules-for-entire-files]documentation[/link] for instructions on how to ignore specific rule violations." +-- +2.39.2 + diff --git a/srcpkgs/python3-ansible-lint/template b/srcpkgs/python3-ansible-lint/template index caf694a16080..ed0cb9089e66 100644 --- a/srcpkgs/python3-ansible-lint/template +++ b/srcpkgs/python3-ansible-lint/template @@ -1,6 +1,6 @@ # Template file for 'python3-ansible-lint' pkgname=python3-ansible-lint -version=6.12.0 +version=6.13.0 revision=1 build_style=python3-pep517 make_install_target="dist/ansible_lint-*-*-*-*.whl" @@ -18,7 +18,7 @@ maintainer="Jan Christian Grünhage " license="GPL-3.0-only" homepage="https://github.com/ansible/ansible-lint" distfiles="${PYPI_SITE}/a/ansible-lint/ansible-lint-${version}.tar.gz" -checksum=887e88262dbd9e2cbb5b7a70a94d945a8a2791d1467cf30af49c22b60899b40b +checksum=e2d45d8315729f429cbbefdab446d38050ad7b36d9e3aa1ec1beaf2914d029a0 # cba anymore, the list of failing tests changes with every update make_check="no"