#5 Error: Unknown repo: 'rawhide-source'
Closed by salimma. Opened by msuchy.

$ ebranch missing-build-reqs rpmconf copr-cli
Error: Unknown repo: 'rawhide-source'

Similary
$ ebranch build-reqs copr-cli
Traceback (most recent call last):
File "/usr/bin/ebranch", line 8, in
sys.exit(cli())
File "/usr/lib/python3.10/site-packages/click/core.py", line 1137, in call
return self.main(args, kwargs)
File "/usr/lib/python3.10/site-packages/click/core.py", line 1062, in main
rv = self.invoke(ctx)
File "/usr/lib/python3.10/site-packages/click/core.py", line 1668, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback,
ctx.params)
File "/usr/lib/python3.10/site-packages/click/core.py", line 763, in invoke
return __callback(
args, *kwargs)
File "/usr/lib/python3.10/site-packages/ebranch/cli.py", line 31, in build_reqs
click.echo(dnf.get_pkg_build_reqs(pkgname, ref_repo))
File "/usr/lib/python3.10/site-packages/ebranch/dnf.py", line 65, in get_pkg_build_reqs
r.check_returncode()
File "/usr/lib64/python3.10/subprocess.py", line 456, in check_returncode
raise CalledProcessError(self.returncode, self.args, self.stdout,
subprocess.CalledProcessError: Command 'dnf --disablerepo=
--enablerepo=rawhide-source repoquery --requires copr-cli' returned non-zero exit status 1.

It seems that script assume I have fedora-rawhide repos installed.


It does, yeah, on the assumption that Rawhide has a more complete set of packages. Looks like there are two issues:
- I forgot to make the RPM pull in the Rawhide repos. But this only works on Fedora
- In case such a repo is not available, it should fallback to using the Fedora repos

For someone running this on CentOS, the Rawhide repo won't be available, so I probably should make a subpackage containing the Rawhide repos that is only shipped %if 0%{?fedora}

Metadata Update from @salimma:
- Issue assigned to salimma
- Issue set to the milestone: v0.0.2
- Issue tagged with: bug

Issue tagged with: rfe

Fixed in f8c275448635de03f9fe1781604aa5db2ea836d2 - will release soon.

Metadata Update from @salimma:
- Issue status updated to: Closed (was: Open)

Metadata