#2 user config files
Closed None Opened 6 years ago by jkastner.

rpkg looks only for /etc/rpkg.conf. it should look for $HOME/.config/rpkg or $HOME/.rpkg/.
maybe 2nd is more suitable for having own config for namespaces


Metadata Update from @clime:
- Issue assigned to clime

rpkg looks only for /etc/rpkg.conf. it should look for $HOME/.config/rpkg or $HOME/.rpkg/.
maybe 2nd is more suitable for having own config for namespaces

What do you think about $HOME/.rpkg.conf?

i'm ok with that, if config should include other files :)
otherwise i would like to see something like conf.d folder, where you should have files like:
01-fedora.conf
02-centos.conf
03-copr-one.conf
03-copr-another.conf
04-rpmfusion.conf

Well, it's also possible to have .rpkg-fedora.conf .rpkg-centos.conf etc. and then use -C switch to use the appropriate dist-git. It would be the same case as if it was in a conf.d directory (the need to use -C). That's why I think just $HOME/.rpkg.conf could be enough.

if one file, i would vote for $HOME/.config/rpkg like $HOME/.config/copr for copr-cli

if one file, i would vote for $HOME/.config/rpkg like $HOME/.config/copr for copr-cli

Ok, sounds good to me.

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

Metadata Update from @clime:
- Issue assigned to clime

6 years ago

Login to comment on this ticket.

Metadata