On Tue, 2007-08-07 at 23:02 +0200, Terje Røsten wrote: > seth vidal > > what sort of stuff would we want to stick there? > > > history! > > - version installed when > > BTW: is the db for each package name or each > package-version-release-epoch, I vote for package.
I was thinking that when I get YumInstalledPackage object back from the rpmsack it would also do a lookup against this db for: naevr or maybe pkgId A simplistic database would be something like: key=pkgid pkg=naevr dataname='installed_from_repo' datatype='string' datavalue='gonzorpms' or key=pkgid pkg=naevr dataname='installation_reason' datatype='list' datavalue='dep:otherpkg, update' or key=pkgid pkg=naevr dataname='immutable' datatype='bool' datavalue=True then when I have the po I could do: po.installed_from_repo and get 'gonzorpms' and po.installation_reason would return ['dep:otherpkg', 'update'] and po.immutable would return True this is just off the cuff so abuse is welcome for why all of this is stupid, etc. -sv _______________________________________________ Yum-devel mailing list [email protected] https://lists.dulug.duke.edu/mailman/listinfo/yum-devel
