Mailinglist Archive: opensuse-packaging (266 mails)

< Previous Next >
Re: [opensuse-packaging] Does Requires implies Requires(preun) and Requires(post)?
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).


Michael Schroeder mls@xxxxxxx
SUSE LINUX Products GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx

< Previous Next >