Bug 389 - rpmlint not working with error message
Summary: rpmlint not working with error message
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: i586 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Michael Scherer
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-16 11:02 CET by Oliver Burger
Modified: 2011-03-16 12:40 CET (History)
0 users

See Also:
Source RPM: rpmlint-mageia-policy-0.2.8-2.mga1.src.rpm
CVE:
Status comment:


Attachments

Description Oliver Burger 2011-03-16 11:02:44 CET
Description of problem:
When trying to lint a spec file, I'm getting the following error message:

----------------
rpmlint -i clanlib0.6.spec 
(none): E: error while reading /home/oli/rpm-build/rpm/mga1/SPECS/clanlib0.6.spec: nothing to repeat
0 packages and 0 specfiles checked; 0 errors, 0 warnings.
----------------

When doing it on a src.rpm it's
----------------
rpmlint -i ../SRPMS/clanlib0.6-0.6.5-38mga1.src.rpm 
0 packages and 0 specfiles checked; 0 errors, 0 warnings.
Traceback (most recent call last):
  File "/usr/share/rpmlint/rpmlint.py", line 364, in <module>
    main()
  File "/usr/share/rpmlint/rpmlint.py", line 159, in main
    runChecks(pkg)
  File "/usr/share/rpmlint/rpmlint.py", line 219, in runChecks
    check.check(pkg)
  File "/usr/share/rpmlint/TagsCheck.py", line 689, in check
    self.check_description(pkg, lang, ignored_words)
  File "/usr/share/rpmlint/TagsCheck.py", line 848, in check_description
    spell_check(pkg, utf8desc, '%%description -l %s', lang, ignored_words)
  File "/usr/share/rpmlint/TagsCheck.py", line 498, in spell_check
    printWarning(pkg, 'spelling-error', fmt % lang, err.word, sug)
  File "/usr/share/rpmlint/Filter.py", line 37, in printWarning
    _print("W", pkg, reason, details)
  File "/usr/share/rpmlint/Filter.py", line 66, in _print
    if not Config.isFiltered(s):
  File "/usr/share/rpmlint/Config.py", line 164, in isFiltered
    _filters_re = re.compile(_filters_re)
  File "/usr/lib/python2.7/re.py", line 190, in compile
    return _compile(pattern, flags)
  File "/usr/lib/python2.7/re.py", line 245, in _compile
    raise error, v # invalid expression
sre_constants.error: nothing to repeat
----------------

Version-Release number of selected component (if applicable):
rpmlint-mageia-policy-0.2.8-2.mga1            Di 15 Mär 2011 18:08:30 CET
rpmlint-1.0-1.mga1                            So 06 Mär 2011 14:32:08 CET

How reproducible:
Just call rpmlint -i on any spec or src.rpm

It was working - I think - until the last update of rpmlint-mageia-policy.

Reproducible: 

Steps to Reproduce:
Comment 1 Michael Scherer 2011-03-16 11:13:04 CET
I suspect that the latest config change is wrong.
Comment 2 Michael Scherer 2011-03-16 12:19:31 CET
I cannot reproduce :/ 

Is the clanlib spec in the svn ?
Comment 3 Oliver Burger 2011-03-16 12:24:31 CET
Not yet, but it fails on pidgin-libnotify as well, which is in svn.

----------------
[obgr@prokyon SPECS]$ rpmlint -i pidgin-libnotify.spec 
(none): E: error while reading /home/oli/rpm-build/rpm/mga1/SPECS/pidgin-libnotify.spec: nothing to repeat
0 packages and 0 specfiles checked; 0 errors, 0 warnings.
----------------

And it did work for that one yesterday.
Comment 4 Michael Scherer 2011-03-16 12:40:08 CET
Ok, I type *. instead of .* in the filtering regexp. Should be fixed with next upload.

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.