[Yum-devel] Offering nvra instead of na completions from bash completion helper

James Antill james at fedoraproject.org
Wed Dec 12 16:53:48 UTC 2012


On Tue, 2012-12-11 at 23:43 +0200, Ville Skyttä wrote:
> On 2012-10-25 23:24, James Antill wrote:
> 
> >  Yeh, if we can only have one I guess nvra is better ... for those few
> > times we want/need to specify a version, but it feels like the common
> > case would get less nice.
> 
> Attached is another stab at this; this time outputting nvra only for
> installonlypkgs, and na for others. I think this would be a good
> improvement and not make the the general cases uglier.
> 
> The installonly filtering logic is basically copy/pasted from
> TransactionData._allowedMultipleInstalls(); I suppose that's not
> available in a form that could be reused here ATM.

 Use YumBase.allowedMultipleInstalls(), we really need to cleanup all
the random hand coded versions of that.
 ACK.



More information about the Yum-devel mailing list