Dirk Mueller
0a5a2e6c39
OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory:rpmlint/rpmlint-mini?expand=0&rev=75
20 lines
621 B
Python
20 lines
621 B
Python
#!/usr/bin/python3
|
|
|
|
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:
|
|
exec(compile(open(f).read(), f, 'exec'))
|
|
except IOError:
|
|
pass
|
|
except Exception as e:
|
|
Pkg.warn('(none): W: error loading %s, skipping: %s' % (f, e))
|