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 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.

Cheers,
Michael.

--
Michael Schroeder mls@xxxxxxx
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@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References