[Rpm-metadata] modifyrepo.py

seth vidal skvidal at linux.duke.edu
Sat Aug 26 05:31:35 UTC 2006


On Wed, 2006-08-23 at 15:45 -0400, Luke Macken wrote:
> I just committed a new tool, modifyrepo.py, to CVS.  This tool is used
> to insert arbitrary metadata into a given repository.
> 
> Example:
>     $ ./modifyrepo.py ~/updateinfo.xml ~/tmprepo/repodata
>     Wrote: /home/lmacken/tmprepo/repodata/updateinfo.xml.gz
>                type = updateinfo
>            location = repodata/updateinfo.xml.gz
>            checksum = 8ae77bc9a709bcf9c7f030dae3e9f0842803fcca
>           timestamp = 1156361029
>       open-checksum = 4a694054c7429332281289c16f83452959f359eb
>     Wrote: /home/lmacken/tmprepo/repodata/repomd.xml
> 
> This is the code that the Fedora Updates system uses to insert extended
> metadata into the repos.  From here, the metadata can be retrieved using
> the retrieveMD() method in the YumRepository object, or using the
> yum.update_md module when dealing with specific extended update metadata.
> 
> With the name 'modifyrepo', this should be able to encompass any future
> repository modification code people care to whip up.
> 
> Comments/questions/patches welcome :)
> 

This looks great, Luke. I hope this means more and fun interesting
things added into the metadata.  I think we should have cute little
quotes associated with each package. Then a yum plugin to download the
output the quotes to you while yum is updating something. :)

-sv





More information about the Rpm-metadata mailing list