Description of problem: I often perform scratch builds in Koji to test a particular feature, and these sometimes emit numerous sub-packages. Currently I'm manually downloading each URL from the web UI, and installing them with rpm. It would be useful when testing the builds to be able to have a yum repository for the build, so that I could write something like this: yum --with-koji-task=1972153 update python and have yum "magically" grab the test build of python, python-libs etc (i.e synthesize a repository for the build: http://koji.fedoraproject.org/koji/taskinfo?taskID=1972153 and enable it for this command). Potentially, multiple instances of --with-koji-task could be supplied. How sane does this sound, and would other people find this useful? (Probably a plugin, I guess) Note that this introduces a singleton "koji" URL, could have a syntax like this: --with-repo=koji:1972153 and have some pluggable mechanism for generating repository info on the fly from a string like "koji:task:1972153", as opposed to say "koji:tag:dist-f14", with e.g. another string for people with their own instances of Koji.
this is a variation on the tmprepo plugin. or a variation on createrepo -i http://url/pkg1 -i http://url/pkg2 etc in either case it would be much simpler if koji, at the end of a build process just ran createrepo -d over the results. if koji does the above first then yum just needs a url an the tmprepo plugin.
I have: % cat /etc/yum.repos.d/koji.repo [koji] name=Koji $basearch baseurl=http://koji.fedoraproject.org/static-repos/dist-rawhide-current/$basearch/ gpgcheck = false enabled=false [koji-32] name=Koji i386 baseurl=http://koji.fedoraproject.org/static-repos/dist-rawhide-current/i386/ gpgcheck = false enabled=false ...which generally takes a couple of hours, and if I can't wait that long recent yum's allow you to paste URLs directonly on the cmd line. As Seth says, for us to do any better it'd be really nice for koji to do the createrepo run.
Created attachment 390496 [details] script to download rpms from koji build and make yum metadata What about something like this :)
koji supports "download-build" command now, all you need is koji download-build <pkg-ver-rel> && createrepo -d . to create a local repository from the build.
yum and related packages are no longer actively developed. They are being replaced with dnf, dnf-utils, etc. I'm closing this bug because it's most likely never going to be fixed. If you still consider your bug report important, reopen it, please.