Re: yumcmd methods

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On Thu, 11 Feb 2010, Stuart Sears wrote:

Hi all,

working through yumcmd with func over the last couple of days, I've
written an 'install' method, so as skvidal suggested I'm posting it
here. This is the first time I've worked with yum using python so it may
be a tad rough around the edges. At the moment the intent is to have a
yumcmd.install method that takes a 'pattern'  argument, which is split
on whitespace.

I'm not entirely sure what should be returned from such a method.
Ideally I'd like to see it return
1. The list of packages successfully installed (including deps)
or/and possibly
2. Those that could not be installed because they are already there!
with optional args to suppress output (kind of like yum does when run
manually)

I'm not sure how to approach the returned info parts (perhaps
yum.tsInfo.pkgdict?).
The current (working) version of yumcmd.py is attached for those more
expert to rip it to bits :)

be nice :)

Not a bad first start. The hard part about the yumcmd module is that for func it has to go Lowest-common-denominator to work with various yum's.

I've been thinking that maybe we need to move the yumcmd module into yum itself so that the version you have is for the version of yum you have.


but in general every version should implement:

install, update, remove, check-updates, list


-sv

_______________________________________________
Func-list mailing list
Func-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/func-list

[Index of Archives]     [Fedora Users]     [Linux Networking]     [Fedora Legacy List]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux