Re: rpmbuild: Bad Requireflags: qualifiers: Requires(posttrans)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 01/24/2011 11:16 PM, Matt McCutchen wrote:
> On Mon, 2011-01-24 at 14:02 -0500, Bill Nottingham wrote:
>> I believe folding any requirements for %posttrans scripts into
>> 'Requires(post)' should be sufficient.
>
> I don't think so... IIUC, Requires(post) only applies until installation
> is complete, but a %posttrans script also runs following uninstallation.
> Granted, it may not be a problem for other reasons.

%posttrans does NOT run on uninstallation. So in that sense 
Requires(post) is in fact more correct than plain Requires.
It really does need its own dependency type to be handled correctly 
though: %posttrans dependencies should not be taken into account on 
ordering, and it should be possible to remove such dependencies after 
installation (provided that nothing else depends on them of course). 
%posttrans dependencies only need to guarantee the dependency doesn't 
get removed in the same transaction.

	- Panu -

-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux