diff --git a/build/10-repos.sh b/build/10-repos.sh index 3a54d39..8781d75 100755 --- a/build/10-repos.sh +++ b/build/10-repos.sh @@ -69,11 +69,11 @@ for path in paths: for sec in sections: has_pin = any(l.split("=")[0].strip() == "includepkgs" for l in sec["opts"] if "=" in l) has_skip = any(l.split("=")[0].strip() == "skip_if_unavailable" for l in sec["opts"] if "=" in l) - if not has_pin: - # Pinning entfernt: DNF5 handled includepkgs mit mehreren Werten - # nicht zuverlaessig. Terra ist ein Voll-Repo; Shadowing-Risiko - # ist bei expliziter Paketauswahl akzeptabel (nur 3 Pakete). - pass + # Alte includepkgs-Zeilen entfernen (falls vorhanden), damit Terra + # nicht eingeschraenkt ist (DNF5 handled mehrere Werte nicht). + old_opts = sec["opts"] + sec["opts"] = [l for l in old_opts if not (l.split("=")[0].strip() == "includepkgs" and "=" in l)] + if len(sec["opts"]) != len(old_opts): changed = True if not has_skip: sec["opts"].insert(0, "skip_if_unavailable=True\n")