Skip to content

Commit 9c3ba48

Browse files
committed
vmupdate: Install pipewire from bookworm-backports too
Fixes QubesOS/qubes-issues#8560 Fixes QubesOS/qubes-issues#8916
1 parent e5106a7 commit 9c3ba48

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

vmupdate/agent/source/plugins/bookworm_backports.py

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@
3737
3838
"""
3939

40+
prefs_pipewire_data = """\
41+
Package: src:pipewire
42+
Pin: release n=bookworm-backports
43+
Pin-Priority: 600
44+
45+
"""
46+
4047

4148
def add_backports_repo():
4249
# find URL flavor used for deb.debian.org
@@ -82,20 +89,26 @@ def check_package_not_from_backports(package):
8289

8390
def bookworm_backports(os_data, log, **kwargs):
8491
"""
85-
Update firmware packages from backports repository.
92+
Update firmware and/or pipewire packages from backports repository.
8693
8794
https://github.com/QubesOS/qubes-issues/issues/9815
95+
https://github.com/QubesOS/qubes-issues/issues/8560
96+
https://github.com/QubesOS/qubes-issues/issues/8916
8897
"""
8998
if os_data.get("codename", "") == "bookworm":
9099
# check what packages need to be updated to backports version
91100
update_firmware = check_package_not_from_backports(
92101
"firmware-linux-nonfree"
93102
)
94-
if not update_firmware:
103+
update_pipewire = check_package_not_from_backports("pipewire")
104+
if not update_firmware and not update_pipewire:
95105
return
96106
add_backports_repo()
97107
# then pin firmware packages to backports repo
98108
if not os.path.exists(prefs_path):
99109
with open(prefs_path, "w") as prefs:
100110
if update_firmware:
101111
prefs.write(prefs_firmware_data)
112+
113+
if update_pipewire:
114+
prefs.write(prefs_pipewire_data)

0 commit comments

Comments
 (0)