My configuration /etc/kojid/kojid.conf has:
/etc/kojid/kojid.conf
git.corpnetwork.org:/rpms/*\:no\:centpkg,sources
And I am trying to build bash package:
bash
koji build --scratch --skip-tag common \ "git+https://git.corpnetwork.org/rpms/bash.git#9cbdf4fdb89fe717ae05c0df3ae34c101ed9db47
But centpkg trying to fetch tarball from https://sources.stream.centos.org/sources and package building fails with error:
https://sources.stream.centos.org/sources
DEBUG util.py:463: Downloading bash-5.1.tar.gz from https://sources.stream.centos.org/sources DEBUG util.py:463: Remove downloaded invalid file /chroot_tmpdir/scmroot/bash/SOURCES/bash-5.1.tar.gz DEBUG util.py:461: Could not execute sources: Dist-git server returned status code 404 DEBUG util.py:610: Child return code was: 1
Questions
Just fork centpkg for your distribution. You'll probably just need to update https://git.centos.org/centos/centpkg/blob/develop/f/src/centpkg.conf to match your setup.
Metadata Update from @tkopecek: - Custom field Size adjusted to None
How can I use it without dist-git and download sources from origin urls?
Source as gathered in two steps: 1) source repo url is cloned 2) script (e.g. "centpkg sources" is run afterwards to download content from lookaside repos)
So, if everything you need is contained in the source repo, you don't need to run anything in step two. Change you line to e.g.:
git.corpnetwork.org:/rpms/*\:no\:/bin/true
But I'm not sure how does your repository structures looks.
Metadata Update from @tkopecek: - Issue close_status updated to: Fixed - Issue status updated to: Closed (was: Open)
This issue has been migrated to Fedora Forge: https://forge.fedoraproject.org/koji/koji/issues/4182
Please continue any further discussion there.