summaryrefslogtreecommitdiff
path: root/packaging/rpmlint-mini.config
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/rpmlint-mini.config')
-rw-r--r--packaging/rpmlint-mini.config19
1 files changed, 19 insertions, 0 deletions
diff --git a/packaging/rpmlint-mini.config b/packaging/rpmlint-mini.config
new file mode 100644
index 0000000..c3c746c
--- /dev/null
+++ b/packaging/rpmlint-mini.config
@@ -0,0 +1,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))