Jan Engelhardt wrote:
On Monday 2014-04-07 19:49, Andrey Borzenkov wrote:
В Mon, 7 Apr 2014 17:34:10 +0200 (CEST) Yamaban <foerster@lisas.de> пишет:
Does RPM / Zypp honor "PreReq:" ?
Yes (although modern equivalent is Requires(pre)).
Requires(pre) means that the dependency is only required for the %pre section. The behavior is not the same as PreReq, which requires the dependency over the entire lifetime, plus it acts as a hint to nudge the dependency order in case of circular deps.
IOW, Requires(pre) is not the modern equivalent of PreReq, though Requires(pre) should be sufficient to have in this case of logrotate.
presets are applied in %post ... Requiring or conflicting with specific versions of the preset package seems odd to me though, There could be multiple different presets packages with different versioning scheme after all. However, even if the updated presets are in place it would still not work as %service_add_post only applies the preset on new installs. So there is code missing that checks which services existed in %pre and applies presets to the new ones in %post. Alternatively the packages could just record the new services and let some post-transaction trigger apply the presets. That would make sure that the new presets are applied if presets were part of the transaction. cu Ludwig -- (o_ Ludwig Nussel //\ V_/_ http://www.suse.de/ SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg) -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org