
On Mon, 2022-05-23 at 21:22 +0300, Andrei Borzenkov wrote:
On 23.05.2022 19:50, Martin Wilck wrote:
I believe that we have better instruments than "Recommends" these days, in particular booleans. In the example at hand, we could create a pseudo-package by the name of, say, "system-requires-wifi". Yast would install this package automatically during system setup if Wifi hardware was deteced. Then Networkmanager could have a dependency like this:
Requires: (NetworkManager-wifi = %{version} if system-requires- wifi)
a) If YaST can detect wifi during setup YaST can also install NetworkManager-wifi. Yet another dummy package makes no sense.
It's more flexible. Even if the wifi hw wasn't present during installation, or if the user doesn't use YaST, she could install "system-requires-wifi" later. Or uninstall it if she decides she isn't going to use wifi any more.
b) how exactly is it going to help those users who got broken system during simple update?
By making sure Networkmanager wouldn't be installed without Networkmanager-wifi? That was the idea at least. If you think it wouldn't work, please explain. Martin