Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error triggered when multiple Copr repositories are specified #498

Open
Ricky-Tigg opened this issue Jun 26, 2023 · 2 comments
Open

Error triggered when multiple Copr repositories are specified #498

Ricky-Tigg opened this issue Jun 26, 2023 · 2 comments
Labels

Comments

@Ricky-Tigg
Copy link

dnf .v: 4.16.1 | Hello.

  • Error triggered when multiple Copr repositories are specified
# dnf copr enable sunwire/ssh-audit atim/starship
Error: Bad format of optional chroot. The format is distribution-version-architecture.
  • No error triggered when a single Copr repository is specified
# dnf -qy copr enable sunwire/ssh-audit
Enabling a Copr repository. (...) owner of this repository.
# 
@pkratoch pkratoch transferred this issue from rpm-software-management/dnf Jun 29, 2023
@pkratoch
Copy link
Contributor

Hi, command copr enable takes a copr repository as the first argument, and if second argument is given, it expects chroot, not a repository. It is documented in the man page:

enable name/project [chroot]
    Enable the name/project Copr repository with the optional chroot.

But I don't see this documented in dnf copr --help, nor dnf copr enable --help (it is in usage variable in the code, but I don't know where it's used), so I get how that can be confusing. @praiskup, do you think the help should be improved? Or any other thoughts?


Also, I just now noticed the dnf-plugins-core issues were disabled. I enabled them and transfered this issue there.

@Ricky-Tigg
Copy link
Author

I had noticed that not even one mention copr was present in the DNF(8) manual; reported in dnf (ticket 1952).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants