On Thu, Nov 22, 2012 at 07:30:06PM +0100, Michael Schroeder wrote:
On Thu, Nov 22, 2012 at 10:22:45PM +0400, Andrey Borzenkov wrote:
Assuming that command from package A is required during installation of package B, is "Requires: A" sufficient or do I need to explicitly use "Requires(preun)" and "Requires(post)"?
You should use Requires(post) and Requires(preun) (assuming you call that command from A in the %post and %preun scriptlets). In most cases "Requires: A" also works, but it's considered bad style and things might break if there's a dependency cycle.
And no, "Requires: A" does not imply "Requires(post/preun): A". The old "PreReq: A" implied it (but rpm upstream says you should not use it anymore). Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org