From 0a4ad37aef6487b2ae35b1eeddccfdc671c76cf7 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Tue, 4 Apr 2006 13:31:38 +0000 Subject: [PATCH] add another configuration file for packager /usr/share/rpmlint/config is used by packager, to set package wide policy, etc, and should not be modified by users /etc/rpmlint/config is used to set a configuration for a specific host, and should be marked as %config(noreplace) in rpm git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1125 9bc8b190-ac0f-0410-8968-dc7d1f502856 --- rpmlint.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/rpmlint.py b/rpmlint.py index 088ea3a7..a85d0e49 100644 --- a/rpmlint.py +++ b/rpmlint.py @@ -175,10 +175,12 @@ all=0 conf_file='~/.rpmlintrc' info_error=0 # load global config file -try: - loadFile('/etc/rpmlint/config') -except OSError: - pass +for f in ('/usr/share/rpmlint/config','/etc/rpmlint/config'): + try: + loadFile(f) + except OSError: + pass + # process command line options for o in opt: