From 718ab2811d32d769d16a9313fa8dcb9f329226c2 Mon Sep 17 00:00:00 2001 From: ionutboangiu Date: Wed, 12 Mar 2025 14:07:24 +0200 Subject: [PATCH] clarify task names related to .changes file checks --- data/ansible/deb_packages/main.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/data/ansible/deb_packages/main.yaml b/data/ansible/deb_packages/main.yaml index 56dfb73ca..23de01a26 100644 --- a/data/ansible/deb_packages/main.yaml +++ b/data/ansible/deb_packages/main.yaml @@ -187,7 +187,7 @@ with_items: "{{ package_files.files }}" when: package_files.matched > 0 - - name: Check for uniqueness of changes files per distribution + - name: Find Debian package changes files (.changes) for each distribution ansible.builtin.find: paths: /var/packages/debian/incoming patterns: "*~deb{{ item.version }}u1_amd64.changes" @@ -195,9 +195,9 @@ register: changes_files with_items: "{{ distributions }}" - - name: Fail if wrong number of changes files found + - name: Validate that each distribution has exactly one .changes file for proper reprepro inclusion ansible.builtin.fail: - msg: "Expected exactly 1 changes file for {{ item.item.codename }}, found {{ item.matched }} files" + msg: "Debian packaging error: Expected exactly 1 .changes file for {{ item.item.codename }}, found {{ item.matched }}. Each distribution should have a single .changes file for proper repository inclusion." when: item.matched != 1 with_items: "{{ changes_files.results }}"