When using the {fed,rh}pkg downloader, also retrieve the sources from the lookaside cache.
The koji builder cannot build an SRPM in the working directory if it does not have all the package sources and patches available, since it does not rely on any *pkg command, but uses rpm/rpmbuild directly. The other relevant builders (except the custom one, which leaves that up to the user) all use *pkg srpm for building the SRPM, which calls *pkg sources if necessary.
The koji builder could of course be adapted to using the *pkg command internally, but I believe this to be an unnecessary coupling/dependency. With this patch, both ways will be working.
When using the
{fed,rh}pkg
downloader, also retrieve the sources from the lookaside cache.The koji builder cannot build an SRPM in the working directory if it does not have all the package sources and patches available, since it does not rely on any
*pkg
command, but usesrpm
/rpmbuild
directly. The other relevant builders (except the custom one, which leaves that up to the user) all use*pkg srpm
for building the SRPM, which calls*pkg sources
if necessary.The koji builder could of course be adapted to using the
*pkg
command internally, but I believe this to be an unnecessary coupling/dependency. With this patch, both ways will be working.Thoughts?