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
This commit is contained in:
Michael Scherer 2006-04-04 13:31:38 +00:00 committed by Ville Skyttä
parent e549b1d4fb
commit 0a4ad37aef
1 changed files with 6 additions and 4 deletions

View File

@ -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: