Skip to content

Commit 1ea1d52

Browse files
committed
fix: optimize logic
1 parent 38f3f30 commit 1ea1d52

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

src/share/rsdk/build/mod/packages/categories/desktop.libjsonnet

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,24 @@ else
7272
[]
7373
) +
7474

75-
(if suite == "bookworm"
75+
(if suite != "bullseye"
7676
then
77-
// 1. Install Debian 12 packages
78-
// 2. Using the latest GPU user level driver,
79-
// can avoid memory leaks in certain scenarios.
77+
// Install Debian 12 packages
8078
[
8179
"wayland-utils",
8280
"gstreamer1.0-pipewire",
81+
]
82+
else
83+
// Install common X.Org packages
84+
[
85+
"xiccd",
86+
]
87+
) +
88+
(if suite == "bookworm"
89+
then
90+
// Using the latest GPU user level driver,
91+
// can avoid memory leaks in certain scenarios.
92+
[
8393
"mesa-va-drivers/bookworm-backports",
8494
"mesa-vdpau-drivers/bookworm-backports",
8595
"mesa-vulkan-drivers/bookworm-backports",
@@ -88,10 +98,7 @@ then
8898
"libglx-mesa0/bookworm-backports",
8999
]
90100
else
91-
// Install common X.Org packages
92-
[
93-
"xiccd",
94-
]
101+
[]
95102
)
96103
},
97104
}

0 commit comments

Comments
 (0)