On 25 April 2012 20:48, nicolas vigier <[email protected]> wrote: >> This is quite an important one for upgrades. I'm not sure I have the >> relevant knowledge to do this, but will happily help once the rebuilds >> come around. Can someone with more rpm-foo volunteer here? > > rpm allows to use a script to automatically add requires, but it looks > like it's not possible to automatically add Requires(pre/preun) with a > script. > > So we can use find-requires script to automatically add a require on > rpm-helper for package containing systemd units. But in that case the > package will be installed almost everywhere (I think everybody has at > least one package containing systemd units installed) so it's more > simple to add the require on rpm or rpm-mageia-setup.
You still can't guaranty it would be installed or updated before. > Or is there a lot of people uninstalling rpm-helper to save space while > they are not installing/updating packages ? Do you understand what is installing or upgrading? Especially what is package ordering at install/upgrade time? At install time, w/o proper requires/... you can't garanty that rpm and thus the packages it requires may be installed after the packages needing it for their %post scripts => ERROR At upgrade time, w/o proper versionaed requiresn you can't garanty that rpm and thus the packages it requires wil be updated before the packages needing it for their %post scripts => ERROR
