[Yum-devel] RFC: [PATCH] Making it easy to make yum utils

Tim Lauridsen tim at rasmil.dk
Fri Nov 17 13:59:10 UTC 2006


It have played around with making it easier to make yum utils there 
inherit the basic cli stuff from YumBaseCli.

I have created new file utils.py there contains a YumUtilBase class, 
there inherit from YumBaseCli.
I have made some changes to getOptionsConfig and some of  the  code into 
the YumOptionParser class, so it can be reused
by the YumUtilBase class.

Take a look at the testutil.py to see how a basic yum util will look.

Let me know what you think.

Tim


-------------- next part --------------
A non-text attachment was scrubbed...
Name: testutil.py
Type: text/x-python
Size: 1141 bytes
Desc: not available
Url : http://lists.baseurl.org/pipermail/yum-devel/attachments/20061117/ce01dff4/attachment.py 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: yum-cli-patch.txt
Url: http://lists.baseurl.org/pipermail/yum-devel/attachments/20061117/ce01dff4/attachment.txt 


More information about the Yum-devel mailing list