new stuff
seth vidal <[email protected]>
| Newsgroups | gmane.linux.rpm.metadata |
|---|---|
| Message-ID | <1067585315.9355.52.camel@binkley> |
Hi, updated rpm-md-dump.py - - partial changelog support into other.xml - need to clean up the changelogname field b/c it includes that partial e-v-r SOMETIMES. - changed BuildHost to buildhost - fixed the size tag to say package, not rpm for the size of the package file :) uploaded importmetadata.py - - takes one argument - path to base.xml - dumps the data (well most of it, so far) into a class - right now it doesn't keep track of the data in the PackaeList class yet but that is the plan. Just a structure for parsing and handling. Speed on import isn't wonderful, but not too bad. for 2300 packages it takes 13s to read through the data and bring it into the class structure(s). I need to run timeit on this, see where I'm spinning the most. the importmetadata.py thing isn't terribly critical for the metadata generation but it is something I needed to do and maybe someone else on here will find it useful. I've split the classes into a base class (PackageObject) and a derived class (RpmObject). Arguably a DebObject derived class could plug right in there and capture deb pkg metadata as well. suggestions on things I'm doing stupidly or, of course, compliments, welcome ;) -sv