From 8af047a3a6b9faaefd6ed8931c494507b82d6d67 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Wed, 8 May 2024 10:44:52 +0200 Subject: OBS: sync_obs_projects: remove AlmaLinux:8 Related: OS#6446 Change-Id: I19fc021a950790eab8b8074ea1c0cdd34232f4f8 --- jobs/osmocom-obs-sync.yml | 1 - scripts/obs/sync_obs_projects.py | 17 ----------------- 2 files changed, 18 deletions(-) diff --git a/jobs/osmocom-obs-sync.yml b/jobs/osmocom-obs-sync.yml index a57f968..3776688 100644 --- a/jobs/osmocom-obs-sync.yml +++ b/jobs/osmocom-obs-sync.yml @@ -28,7 +28,6 @@ - shell: | export PYTHONUNBUFFERED=1 export DISTROS=" - AlmaLinux:8 Debian:10 Debian:11 Debian:12 diff --git a/scripts/obs/sync_obs_projects.py b/scripts/obs/sync_obs_projects.py index cc4635a..965aca2 100755 --- a/scripts/obs/sync_obs_projects.py +++ b/scripts/obs/sync_obs_projects.py @@ -124,8 +124,6 @@ def is_up_to_date(header, projects, project): def get_relevant_arches(project): - if project.startswith("AlmaLinux:"): - return ["x86_64"] if project.startswith("Raspbian:"): return ["armv7l"] @@ -226,21 +224,6 @@ def rewrite_prjconf(project, header): prjconf += f"{line}\n" - # Extend the AlmaLinux prjconf to also set CentOS variables, as some of - # our prjconfigs and spec files rely on them - if project == "AlmaLinux:8": - print(f" appending CentOS 8 variables") - prjconf += "\n" - prjconf += "# CentOS 8 compat added by sync script\n" - prjconf += "%define centos_version 800\n" - prjconf += "%define centos_ver 8\n" - prjconf += "%define centos 8\n" - prjconf += "Macros:\n" - prjconf += "%centos_version 800\n" - prjconf += "%centos_ver 8\n" - prjconf += "%centos 8\n" - prjconf += ":Macros\n" - with open(temp_dest_new_prjconf, "w") as f: f.write(header) f.write(prjconf) -- cgit v1.2.3