dev_scripts: Download FPF's PySide6 RPM only for Fedora 39

Download the FPF-maintained python3-pyside6 RPM [1] only when we build
an end-user environment for Fedora 39. Else, from Fedora 40 onwards, we
can use the official `python3-pyside6` RPM.

Refs freedomofpress/maint-dangerzone-pyside6#5

[1]: https://packages.freedom.press/yum-tools-prod/dangerzone/f39/python3-pyside6-6.7.1-1.fc39.x86_64.rpm
This commit is contained in:
Alex Pyrgiotis 2024-07-16 20:03:38 +03:00
parent 168f0e53a8
commit f739761405
No known key found for this signature in database
GPG key ID: B6C15EBA0357C9AA

View file

@ -638,9 +638,10 @@ class Env:
package_dst = build_dir / package
install_cmd = "dnf install -y"
# NOTE: For Fedora 39+ onward, we check if a PySide6 RPM package exists in
# NOTE: For Fedora 39, we check if a PySide6 RPM package exists in
# the user's system. If not, we either throw an error or download it from
# FPF's repo, according to the user's choice.
if self.version == "39":
pyside6 = PySide6Manager(self.distro, self.version)
if not pyside6.is_rpm_present:
if download_pyside6: