Avoid outputting useless line numbers (alcapcom at gmail.com).

git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1355 9bc8b190-ac0f-0410-8968-dc7d1f502856
This commit is contained in:
Ville Skyttä 2007-06-06 22:11:02 +00:00
parent 1ac447c4e4
commit 3134f0e9b2
1 changed files with 3 additions and 0 deletions

View File

@ -323,6 +323,9 @@ class SpecCheck(AbstractCheck.AbstractCheck):
if not indent_spaces and indent_spaces_regex.search(line): if not indent_spaces and indent_spaces_regex.search(line):
indent_spaces = pkg.current_linenum indent_spaces = pkg.current_linenum
# No useful line number info beyond this point.
pkg.current_linenum = None
for sect in buildroot_clean: for sect in buildroot_clean:
if not buildroot_clean[sect]: if not buildroot_clean[sect]:
printError(pkg, 'no-cleaning-of-buildroot', '%' + sect) printError(pkg, 'no-cleaning-of-buildroot', '%' + sect)