Re: yum --allow-downgrade syntax

seth vidal <[email protected]>
Newsgroups gmane.linux.rpm.yum
Message-ID <1207158644.15651.77.camel@cutter>
On Wed, 2008-04-02 at 11:15 -0500, Troy Dawson wrote:
> Hi,
> I've googled, I've read the help, I've read the wiki, I've even read the source 
> code, and I just cannot figure out the syntax to the allow-downgrade plugin.
> Actually, through all my googling, I haven't actually read of anyone actually 
> using it successfully.  Which rather blows my mind.
> 
> Anyway, what is the correct syntax?
> 
> For those that are curious ... the main code is shorter than this e-mail 
> message, in case it helps.
> 
> def postresolve_hook(conduit):
>      opts, args = conduit.getCmdLine()
>      if opts.allow_downgrade:
>          tsInfo = conduit.getTsInfo()
>          tsInfo.probFilterFlags.append(RPMPROB_FILTER_OLDPACKAGE)
> 
> I would file a bugzilla ... but for all I know, it's working correctly.

yum --allow-downgrade install somepkg-somever

that's the only odd part: you're INSTALLING a downgrade.

-sv
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.