Skip to content

Commit

Permalink
Adjust install script for dnf5
Browse files Browse the repository at this point in the history
  • Loading branch information
marmarek committed Aug 14, 2024
1 parent 3ae8b1c commit c84e093
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/gitlab-installv2
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ def main(release: str, qubes_distribution: QubesDistribution, repository: Path):
f"sed -i -e 's/4\\.2/{release}/g ' /etc/yum.repos.d/{repofile} && "
"dnf -y update && dnf -y --allowerasing install"
)
# dnf5 doesn't support --allowerasing (yet?)
if int(qubes_distribution.version) >= 41:
run_cmd = run_cmd.replace(" --allowerasing", "")
elif qubes_distribution.fullname in ("debian", "ubuntu"):
pkgext = "deb"
run_cmd = (
Expand Down

0 comments on commit c84e093

Please sign in to comment.