mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00
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:
parent
168f0e53a8
commit
f739761405
1 changed files with 19 additions and 18 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue