From 14cf0eff1d47742a405e2d0a31f4ce00071eacd8 Mon Sep 17 00:00:00 2001 From: Luis Neto Date: Tue, 10 Dec 2024 08:07:02 -0800 Subject: [PATCH] TUN-8795: update createrepo to createrepo_c to fix the release_pkgs.py script ## Summary The default-flavour of cfsetup changed from bullseye to bookworm and in the latter the createrepo package was renamed to createrepo_c. Closes TUN-8795 --- cfsetup.yaml | 2 +- release_pkgs.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cfsetup.yaml b/cfsetup.yaml index 572fe21e..05ffd20f 100644 --- a/cfsetup.yaml +++ b/cfsetup.yaml @@ -243,7 +243,7 @@ bullseye: &bullseye - python3-setuptools - python3-pip - reprepro - - createrepo + - createrepo-c - python3-venv post-cache: - python3 -m venv env diff --git a/release_pkgs.py b/release_pkgs.py index 1f31e548..8d1f5c6e 100644 --- a/release_pkgs.py +++ b/release_pkgs.py @@ -113,7 +113,7 @@ class PkgCreator: def create_rpm_pkgs(self, artifacts_path, gpg_key_name): self._setup_rpm_pkg_directories(artifacts_path, gpg_key_name) - p = Popen(["createrepo", "./rpm"], stdout=PIPE, stderr=PIPE) + p = Popen(["createrepo_c", "./rpm"], stdout=PIPE, stderr=PIPE) out, err = p.communicate() if p.returncode != 0: print(f"create rpm_pkgs result => {out}, {err}")