Re: Is there an easy way to get a simple dict of rpm attributes from xml metadata?
Hans-Peter Jansen <[email protected]>
| Newsgroups | gmane.linux.rpm.metadata |
|---|---|
| Message-ID | <[email protected]> |
Am Sunday 17 April 2005 16:17 schrieb seth vidal: > > > > Would you accept a patch to genpkgmetadata.py for an --update option, > > checking timestamps before shooting? > > > > It still has to be done, but will be a nice job while on plane in my > > holiday. Will do it anyway, but knowing it _may_ be accepted upstream is > > a major call to do it well. ;) > > if you can make the --update option not consume a huge amount of memory, > yes, I will accept it. Every mechanism I've been able to come up with > for --update either involved: > 1. a big cache dir that stores all this information broken apart > (bleah) > 2. or reading in all the current xml and storing it in memory - which > is not-small. How about just checking timestamps (those in repomd.xml and repomd.xml itself, and making sure, that no rpm file is newer than this, otherwise just recreate them? Sure, wouldn't be 100% waterproof, but would fit at least my needs! Yes, this behavior should be correctly documented.. Pete