rpm-software-management / dnf-plugins-core

Core DNF Plugins
GNU General Public License v2.0
109 stars 141 forks source link

Error triggered when multiple Copr repositories are specified #498

Open Ricky-Tigg opened 1 year ago

Ricky-Tigg commented 1 year ago

dnf .v: 4.16.1 | Hello.

pkratoch commented 1 year ago

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 commented 1 year ago

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