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
This commit is contained in:
Luis Neto 2024-12-10 08:07:02 -08:00
parent a00c80f9e1
commit 14cf0eff1d
2 changed files with 2 additions and 2 deletions

View File

@ -243,7 +243,7 @@ bullseye: &bullseye
- python3-setuptools - python3-setuptools
- python3-pip - python3-pip
- reprepro - reprepro
- createrepo - createrepo-c
- python3-venv - python3-venv
post-cache: post-cache:
- python3 -m venv env - python3 -m venv env

View File

@ -113,7 +113,7 @@ class PkgCreator:
def create_rpm_pkgs(self, artifacts_path, gpg_key_name): def create_rpm_pkgs(self, artifacts_path, gpg_key_name):
self._setup_rpm_pkg_directories(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() out, err = p.communicate()
if p.returncode != 0: if p.returncode != 0:
print(f"create rpm_pkgs result => {out}, {err}") print(f"create rpm_pkgs result => {out}, {err}")