[Yum] Future feature request...

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

 



> And has an incredibly sane internal set of data structures and an
> extensible and well-documented ABI.
> 

ABI? no - API. there isn't much in the way of 'binary interface' here.

> As you say, this could be done now "outside of yum" with an e.g. perl
> script that does some obvious things, but they would still be
> inefficient -- running yum's core a whole bunch of times instead of just
> once to build its internal installed/uninstalled lists with their
> attached/hashed metadata.


Right:

import yum
conf = yum.config('/etc/yum.conf')
pkglist = yum.parse(conf.pkglists())


whatever - but do it all internally - instead of external
screen-scraping calls.

-sv



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

  Powered by Linux