fix(gates): ownership-Parser bricht erst nach Tabellenbeginn ab
Some checks failed
gates / quality (push) Has been cancelled

Eine Leerzeile oder Blockquote zwischen der 'Datei-Ownership'-Ueberschrift und
der Tabelle setzte den Parser zurueck -> Tabelle wurde nicht gefunden, Gate
faelschlich uebersprungen. Jetzt: f=0 erst, nachdem die Tabelle begonnen hat.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-03 06:57:52 +02:00
parent f6a0fa8b6c
commit d7345e2cb7

View File

@@ -22,9 +22,10 @@ esac
# (pkg<TAB>prefix)-Zeilen aus der STATE.md-Ownership-Tabelle ziehen.
pairs=$(awk -F'|' '
/Datei-Ownership/{f=1; next}
f && /^[[:space:]]*$/{f=0}
/Datei-Ownership/{f=1; started=0; next}
f && started && $0 !~ /^\|/ {f=0} # erst NACH Tabellenbeginn abbrechen
f && /^\|/{
started=1;
pkg=$2; paths=$3;
gsub(/^[ \t]+|[ \t]+$/,"",pkg);
if(pkg=="" || pkg=="Paket" || pkg ~ /---/ || pkg ~ /…/ || pkg ~ /^_/) next;