3.1.3 downloadPkgs, doPackageLists, and package.basepath

Tammo Spalink <[email protected]>
Newsgroups gmane.linux.rpm.yum
Message-ID <[email protected]>
I encountered some trouble upgrading from 3.0.3 ...

In the old version I could invoke yum from within another python
program in a manner like

> pkg_data = yum_session.doPackageLists('available')
> wanted_list = filter_packages(pkg_data.available)
> yum_session.downloadPkgs(wanted_list)

But this no longer works -- the problem seems to be that package
objects returned from doPackageLists no longer have the basepath field
set, which seems to be necessary for downloadPkgs to actually get
them...

Advice on what to do differently would be appreciated.  Thanks,

Tammo
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.