[Yum] [PATCH] Fix prereq flag checking

Ville Skyttä ville.skytta at iki.fi
Fri Mar 27 18:07:05 UTC 2009


On Friday 27 March 2009, Seth Vidal wrote:
> On Fri, 27 Mar 2009, Ville Skyttä wrote:
> > Hi,
> >
> > Currently createrepo on Fedora >= 10 flags all dependencies in the
> > generated metadata as "pre" ones.  Fix attached, more info in its
> > description.
>
> What does that do on rhel5?
>
> otherwise it looks like a good idea.

The patch should not have any bad effects with any rpm version I'm aware of.  
Well, except that it'll obviously break with rpm-python versions where the 
rpm.RPMSENSE_SCRIPT_PRE or rpm.RPMSENSE_SCRIPT_POST constants don't exist but 
based on some source diving, that means rpm < 4.0.2.

RHEL 5 (I checked sources up to 4.4.2.3-7.el5) is one of those distros that 
have their rpm patched to the upstream rpm < 4.4 behaviour where 
RPMSENSE_PREREQ is not 0.  So the only thing I assume it would change on it 
would be that it might start to treat Requires(pre) and Requires(post) in 
addition to PreReq as "pre" dependencies in this context (unless it already 
did through some other means) which I think is only a good thing.


More information about the Yum mailing list