blob: c3c746c70d0f815215ae9e64e72941ce1f4bd3c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/usr/bin/python
import os, glob, Pkg
configs = [ '/opt/testing/share/rpmlint/config' ]
if os.environ.get("RPMLINT_MINI_CONFIG", None):
configs += os.environ.get("RPMLINT_MINI_CONFIG", '').split(' ')
else:
configs += glob.glob("/home/abuild/rpmbuild/SOURCES/*rpmlintrc")
configs += glob.glob("/usr/src/packages/SOURCES/*rpmlintrc")
configs += glob.glob('/opt/testing/share/rpmlint/mini/*.config')
for f in configs:
try:
execfile(f)
except IOError:
pass
except Exception, E:
Pkg.warn('(none): W: error loading %s, skipping: %s' % (f, E))
|