[Yum-devel] Package update metadata

Luke Macken lmacken at redhat.com
Thu Jan 26 18:20:00 UTC 2006


I wrote up a quick implementation for the update metadata server, and
the createrepo code to talk to it.

http://people.redhat.com/lmacken/metadata

	o getmetadata.cgi
	  Called by createrepo with a single 'pkg' parameter with the filename
	  of the rpm.

	o rehash.py
	  Builds a pickle'd hash of package-name => metadata filename, used
	  for quick lookups instead of parsing every metadata file looking
	  for a specific package name. This will keep the queries O(1).
	  This script will get called after new updates get pushed.

	o createrepo-updatemd.diff
	  Patch for createrepo to add a -U parameter to specify an update
	  metadata host.  A question I have in here is do we want to store
	  the filename of each packages metadata somewhere in the repodata,
	  or do we just want to assume it's going to be filename.xml ?
	  Right now I just replace the '.rpm' with '.xml' (this would also
	  be a lot easier if I could figure out how to get urlgrabber to
	  listen to getmetadata.cgi's Content-Disposition filename so I
	  don't have to set it myself).

Comments?


luke



More information about the Yum-devel mailing list