ferdnyc / rpms / rpmlint

Forked from rpms/rpmlint 5 years ago
Clone
Blob Blame History Raw
Index: rpmlint.py
===================================================================
--- rpmlint.py	(revision 1466)
+++ rpmlint.py	(revision 1467)
@@ -12,6 +12,7 @@
 import AbstractCheck
 import imp
 import getopt
+import glob
 import Pkg
 import Config
 import os
@@ -214,7 +215,10 @@
 info_error=0
 
 # load global config files
-for f in ('/usr/share/rpmlint/config','/etc/rpmlint/config'):
+configs = glob.glob('/etc/rpmlint/*config')
+configs.sort()
+configs.insert(0, '/usr/share/rpmlint/config')
+for f in configs:
     try:
         execfile(f)
     except IOError:
Index: rpmlint.1
===================================================================
--- rpmlint.1	(revision 1466)
+++ rpmlint.1	(revision 1467)
@@ -55,7 +55,7 @@
 \fB/usr/share/rpmlint/config\fR
 Built-in configuration.
 .TP
-\fB/etc/rpmlint/config\fR
+\fB/etc/rpmlint/*config\fR
 System wide configuration.
 .TP
 \fB~/.rpmlintrc\fR
Index: README
===================================================================
--- README	(revision 1466)
+++ README	(revision 1467)
@@ -30,7 +30,7 @@
 	o Rpm file checks (RpmFileCheck).
 
 If you want to change configuration options or the list of checks, use
-the global configuration file /etc/rpmlint/config or in the user
+the global configuration files /etc/rpmlint/*config or the user
 configuration file ~/.rpmlintrc.
 
 Configuration files are Python source files and should begin with the