[Rpm-metadata] arbitrary package repodata in createrepo

seth vidal skvidal at fedoraproject.org
Wed Feb 20 20:30:21 UTC 2008


I checked in a patch today that may or may not be useful to various
people. I think it depends on your imagination.

createrepo takes an optional --pkglist option which is a list of files
you want to include in the repodata.
Now, that list can include arbitrary urls. If createrepo finds one it
will download the remote url to a tempdir, read it in like any other
package and add it to the repodata pointing to the remote location as
the baseurl.

So you could make your own local repository entirely out of remote
packages from a diverse set of locations or make it partially out of
remote packages.

Finally if you add the:
--update --skip-stat options then it will import the metadata for the
matching pkgname w/o redownloading the file, if it is a url.

anyway - it's all in git at the moment, if anyone is interested in it,
please play around a bit and let me know if it works properly for you.

-sv

-- 
I only speak for me.




More information about the Rpm-metadata mailing list