Re: discussion of createrepo and repodata format future
"Duncan Mac-Vicar P." <[email protected]> Fri, 13 Aug 2010 14:21:45 +0200
| Newsgroups | gmane.linux.rpm.metadata |
|---|---|
| Message-ID | <[email protected]> |
On 08/06/2010 04:13 PM, seth vidal wrote: > One more item that had occurred to me for repomd.xml - it would be nice > to be able to, optionally, have an expiration on the metadata so that a > client could know when the data SHOULD have been updated so it can be > sure it is not being intentionally shown out of date information by a > rogue server. > > -sv We already had a conf call about that one and agreed on that tag. SUSE is already using it, in our repomd.xml extension file, called suseinfo.xml curl http://download.opensuse.org/update/11.3/repodata/suseinfo.xml <?xml version="1.0" encoding="UTF-8"?> <suseinfo xmlns="http://linux.duke.edu/metadata/repo"> <expire>2592000</expire> </suseinfo> We use the same parser for repomd.xml and suseinfo.xml. That means, if you put that tag in repomd.xml next to the "tags" tag, we remain compatible. We just kept it in suseinfo.xml to not break compatibility with yum. Duncan