Re: [zypp-devel] listing patches - consider only some repos?
Hmm, what if a repo just added patches - you have to download repomd.xml at least to find out.
huh ? I am missing something ? Sure,a repo can "suddenly" start providing patches but why it has to download repomd.xml ? I see it this way at least for HTTP based repos for **patches** related stuff only. 1. if the repo has not changed do nothing, do not refresh nor reload the cache (after all the repo does not contain patches at all) 2. if the repo has changed, perform a a HEAD request to foobar/repodata/patches.xml if returns HTTP 200 refresh and go ahead. 3.repo can suddenly stop providing patches as well, so a similar operation is needed for that case as well. -- Cristian Rodríguez R. SUSE R&D "You don't have to burn books to destroy a culture. Just get people to stop reading them." --Ray Bradbury
On Fri, Aug 24, Cristian Rodriguez wrote:
Hmm, what if a repo just added patches - you have to download repomd.xml at least to find out.
huh ? I am missing something ?
Sure,a repo can "suddenly" start providing patches but why it has to download repomd.xml ?
Because it is signed and contains the checksums of other metadata files. If a refreshed patches.xml does not match the checksum listed in repomd.xml (or is not listed at all), it has to be ignored. -- cu, Michael Andres +------------------------------------------------------------------+ Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4 +------------------------------------------------------------------+ Michael Andres YaST Development ma@novell.com SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 740 53-0 +------------------------------------------------------------------+ -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
participants (2)
-
Cristian Rodriguez
-
Michael Andres