File more-verbose-lsb-check.diff of Package rpmlint

--- InitScriptCheck.py
+++ InitScriptCheck.py
@@ -101,7 +101,7 @@ class InitScriptCheck(AbstractCheck.AbstractCheck):
                         in_lsb_tag = 0
                         for i in lsb_tags.keys():
                             if len(lsb_tags[i]) != 1:
-                                printError(pkg, 'redundant-lsb-keyword', i)
+                                printError(pkg, 'redundant-lsb-keyword', "'%s' in %s" % (i, f))
                                 
                         # TODO: where is it specified that these (or some)
                         #       keywords are mandatory?
@@ -118,7 +118,7 @@ class InitScriptCheck(AbstractCheck.AbstractCheck):
                                 cres = lsb_cont_regex.search(line)
                                 if not (in_lsb_description and cres):
                                     in_lsb_description = 0
-                                    printError(pkg, 'malformed-line-in-lsb-comment-block', line)
+                                    printError(pkg, 'malformed-line-in-lsb-comment-block', "'%s' in %s" % (line,f))
                                 else:
                                     lsb_tags["Description"][-1] += " " + cres.group(1)
                             else:
@@ -127,7 +127,7 @@ class InitScriptCheck(AbstractCheck.AbstractCheck):
                                    tag not in ('Provides', 'Required-Start', 'Required-Stop',
                                                'Should-Stop', 'Should-Start', 'Default-Stop',
                                                'Default-Start', 'Description', 'Short-Description'):
-                                    printError(pkg, 'unknown-lsb-keyword', line)
+                                    printError(pkg, 'unknown-lsb-keyword', "'%s' in %s" % (line, f))
                                 else:
                                     in_lsb_description = (tag == 'Description')
                                     if not tag in lsb_tags.keys():

openSUSE Build Service is sponsored by