From 93250fc4c55adf312c563b8e87258fa772d097b7 Mon Sep 17 00:00:00 2001 From: Sandro Date: Wed, 14 Feb 2024 20:24:40 +0100 Subject: [PATCH] Fix typo in alternative_arch_report.py Just scratching an itch with `s/ExcludesArch/ExcludeArch/`, making the script do what it was supposed to do all those years. Call it The Seven Year Itch if you like. :-P --- .../git/make_checkout_seed/files/alternative_arch_report.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/git/make_checkout_seed/files/alternative_arch_report.py b/roles/git/make_checkout_seed/files/alternative_arch_report.py index a060cbeee8..3282396e22 100644 --- a/roles/git/make_checkout_seed/files/alternative_arch_report.py +++ b/roles/git/make_checkout_seed/files/alternative_arch_report.py @@ -5,7 +5,7 @@ This script does a few things: - It iterates over all the spec files found in the given directory - For each of these files it finds all the lines starting with `ExclusiveArch` - or `ExcludesArch` + or `ExcludeArch` - It thus builds a dictionnary of filenames -> list of lines of interest - If it ran before and this ``RESULTS`` file is found, it compares the current list of packages with the old one and report: @@ -42,13 +42,13 @@ def parse_folder(arg): with open(os.path.join(foldername, filename)) as stream: data = stream.read() - cnt = data.count('ExclusiveArch') + data.count('ExcludesArch') + cnt = data.count('ExclusiveArch') + data.count('ExcludeArch') lines = [] if cnt > 0: data = data.split('\n') for line in data: - if line.startswith(('ExclusiveArch', 'ExcludesArch')): + if line.startswith(('ExclusiveArch', 'ExcludeArch')): lines.append(line) if len(lines) == cnt: break