Replies: 3 comments 3 replies
-
We definitely want to document the meaning of individual priority levels, because then it will be much easier to grasp the relationship between each other not only for clients, but even for us. One rather minor thing is why we are explicitly defining the numerical values for the priorities? Do we need to keep fixed values for individual priorities for some reason? Otherwise I don't see any advantage of doing this, just disadvantages like worse readability, maintainability, ... |
Beta Was this translation helpful? Give feedback.
-
The |
Beta Was this translation helpful? Give feedback.
-
The most important part related to priority mechanism - where user and |
Beta Was this translation helpful? Give feedback.
-
The discussion should verify the best setting for configuration priority. The following part should provide background with a suggestion haw we can modify them. Please don't hesitate to provide additional use cases or alternatives.
The priority are define here:
dnf5/include/libdnf/conf/option.hpp
Lines 66 to 78 in 370f99f
The first disadvantage of our options is that they do not have documentation or description how they are supposed to be used.
I also believe that the current values does not cover all use cases.
In DNF4 we use to often RUNTIME priority for everything in code because priority was introduce later during development.
I have a difficulty to set proper value for configuration modification by command. Some command requires to modify configuration for proper functionality. As a example I can use
download
command anddestdir
configuration. The command downloads packages to current directory therefore it should set"."
todestdir
. But the value is supposed to be overwritten by--setopt
and--destdir
. I think that"."
should override configuration from files (MAINCONFIG, INSTALLROOT, INSTALLROOT, DROPINCONFIG) because then the command will not work according to documentation.Where to have
DROPINCONFIG
installroot
is driven by user decision (no autodetection like in dnf4) therefore it might be better to lover priority ofDROPINCONFIG
New priority for Distribution config - it should be used to override
I am not sure whether we need
EMPTY
Beta Was this translation helpful? Give feedback.
All reactions