pulp / pulp_rpm

RPM support for Pulp Platform
https://pulpproject.org/pulp_rpm/
GNU General Public License v2.0
48 stars 124 forks source link

Add option to specify alternate name for config.repo #3640

Open simenon opened 3 months ago

simenon commented 3 months ago

Is your feature request related to a problem? Please describe. When generating a .repo file for a repository the file is allways named config.repo.

Describe the solution you'd like Add an option to specify a (alternate) name for the config.repo

Something like pulp rpm publication create \ --repository "${REPO_NAME}" \ --repo-config '{"gpgcheck": 1, "repo-gpgcheck": 1}' \ --repo-filename "${REPO_NAME}.repo"

Describe alternatives you've considered None

Additional context Generally when people download a .repo file they add it to thier repo directory (/etc/yum.repos.d). If all files are named config.repo then you can not distinguish between different repo's, unless you rename the file.