dnf-plugins-core icon indicating copy to clipboard operation
dnf-plugins-core copied to clipboard

Error triggered when multiple Copr repositories are specified

Open Ricky-Tigg opened this issue 2 years ago • 3 comments

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.
# 

Ricky-Tigg avatar Jun 26 '23 15:06 Ricky-Tigg

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.

pkratoch avatar Jun 29 '23 09:06 pkratoch

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

Ricky-Tigg avatar Jun 29 '23 13:06 Ricky-Tigg