[Yum-devel] [PATCH] Add completion helper to get rid of some screen scraping.

James Antill james at fedoraproject.org
Tue Dec 20 16:01:35 UTC 2011


On Tue, 2011-12-20 at 04:16 -0500, Zdenek Pavlas wrote:
> > +++ b/completion-helper.py
> 
> Looked at this and found no bugs there, but I'm not sure there's 
> a strong need for such helper.  I know yum's output is not meant 
> to be parsed, but "yum list/repolist" seems just fine.  
> 
> AIUI, the main (only?) reason for this is the "yum groups list" 
> command, which
> 
> 1. does not support installed/available options

 If you want to add "options" (like the list command) for
installed/available/langs/whatever ... feel free to post them.
 
> I think resolving the above would improve yum UX, and remove 
> or reduce the need to wrap yumcommands.py at the same time.

 It's just better design to not be parsing the output, and we can do a
lot of optimisations (like the repolist code in this helper) ... and it
doesn't tempt people outside of yum to do that too ... but improving the
UX can also be done at the same time :).



More information about the Yum-devel mailing list