From bc35802a341f9cd8a10393f74b962a14966532a5 Mon Sep 17 00:00:00 2001 From: Rune Morling Date: Mon, 17 Jun 2024 17:12:12 +0200 Subject: [PATCH] Explain the order of config file parsing for eopkg4 Signed-off-by: Rune Morling --- pisi/configfile.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pisi/configfile.py b/pisi/configfile.py index 24d3321..bdbc0ee 100644 --- a/pisi/configfile.py +++ b/pisi/configfile.py @@ -5,8 +5,16 @@ # configuration file. Module also defines default values for # configuration parameters. # -# Configuration file is located in /etc/eopkg/eopkg.conf by default, -# having an INI like format like below. +# The configuration file is located in either one of the following locations: +# +# - /usr/share/defaults/eopkg/eopkg.conf +# - /usr/lib/$(current python)/site-packages/pisi/data/eopkg.conf +# - /etc/eopkg/eopkg.conf +# +# The config locations are searched in the order above and the last one found is used exclusively +# which means it overrides all previous files. +# +# It has an INI like format like shown below: # # [general] # destinationdirectory = /