diff options
author | Ed Bartosh <eduard.bartosh@intel.com> | 2013-08-11 18:17:34 +0300 |
---|---|---|
committer | Eduard Bartosh <eduard.bartosh@intel.com> | 2013-08-12 23:56:11 -0700 |
commit | e5ce4ed3104f84fecae02e3867d80a7d79fe6010 (patch) | |
tree | dc37107a64f0cefcf0b33e995d39cf235e703d1f /packaging/repa.spec | |
parent | 23e81434023fd632dcd5d5f15d2c8f40da531b6f (diff) | |
download | repa-e5ce4ed3104f84fecae02e3867d80a7d79fe6010.tar.gz repa-e5ce4ed3104f84fecae02e3867d80a7d79fe6010.tar.bz2 repa-e5ce4ed3104f84fecae02e3867d80a7d79fe6010.zip |
Implemented config file processing
Configuration is taken from /etc/repa.conf and ~/.repa.conf, so it's
possible to specify system defaults in /etc/repa.conf and user-related
configuration options in ~/.repa.conf. ~/.repa.conf has higher priority
and any option from /etc/repa.conf can be reset in ~/.repa.conf
Configuration processing is implemented in a way that default values for
command line parameters are taken from configuration file(s).
Configuration section to use can be specified in command line too.
Fixes: #1141
Change-Id: I632f22674c282021983bc6a496ef1fccc0da3137
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Reviewed-on: https://otctools.jf.intel.com/review/5839
Tested-by: OTC Tools Tester <ed.bartosh@linux.intel.com>
Reviewed-by: Hasan Wan <hasan.wan@intel.com>
Diffstat (limited to 'packaging/repa.spec')
-rw-r--r-- | packaging/repa.spec | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/packaging/repa.spec b/packaging/repa.spec index bea2d0a..176d0b0 100644 --- a/packaging/repa.spec +++ b/packaging/repa.spec @@ -35,6 +35,7 @@ rm -rf %{buildroot} %files %defattr(-,root,root,-) +%config %{_sysconfdir}/%{name}.conf %{_prefix}/share/doc/packages/%{name} %{python_sitelib}/%{name}-%{version}-*.egg-info %{python_sitelib}/%{name}-%{version}-*-nspkg.pth |