Commit a9b8abe9 authored by Lorenz Hüdepohl's avatar Lorenz Hüdepohl
Browse files

Remove old repos also from prjconf

parent bcfe384a
......@@ -840,14 +840,22 @@ Macros:
cuda_aware_mpi=True, openmpi_flavor=of,
additional_tags=("Prefer: mpcdf_" + cuda,))
if old_repos and not remove_old:
if old_repos:
if remove_old:
for name in old_repos:
del prjconf_repos[name]
old_repos = set()
if remove_old_matching:
for name in list(old_repos):
if re.search(remove_old_matching, name):
del prjconf_repos[name]
old_repos.discard(name)
if old_repos:
print("Warning: Keeping the prjconf sections for the following obsolete repositories:")
for name in sorted(old_repos):
print(" -", name)
print()
else:
for old_repo in old_repos:
del prjconf_repos[old_repo]
# Remove build configuration
build = root.find("./build")
......@@ -877,7 +885,7 @@ Macros:
prjconf_ours.extend(prjconf_repos[name])
prjconf_ours.append("")
if not remove_old:
if old_repos:
prjconf_ours.append("# Obsolete repos: ")
prjconf_ours.append("")
for name in sorted(old_repos):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment