Red Hat Bugzilla – Bug 759467
RFE: Allow multiple groups in re
Last modified: 2015-01-31 09:12:58 EST
abrt version: 1.1.18
comment: It shouldn't abrt, but write some error and cleanly exit.
reason: helper.py:175:split_rc:TypeError: expected string or buffer
release: Fedora release 14 (Laughlin)
helper.py:175:split_rc:TypeError: expected string or buffer
Traceback (most recent call last):
File "/usr/bin/cnucnu", line 71, in <module>
if not shell.cmdloop():
File "/usr/lib64/python2.7/cmd.py", line 143, in cmdloop
stop = self.postcmd(stop, line)
File "/usr/lib/python2.7/site-packages/cnucnu/checkshell.py", line 127, in postcmd
print "Latest:", self.package.latest_upstream
File "/usr/lib/python2.7/site-packages/cnucnu/package_list.py", line 271, in latest_upstream
self._latest_upstream = upstream_max(self.upstream_versions)
File "/usr/lib/python2.7/site-packages/cnucnu/helper.py", line 199, in upstream_max
File "/usr/lib/python2.7/site-packages/cnucnu/helper.py", line 148, in upstream_cmp
v1, rc1 = split_rc(v1)
File "/usr/lib/python2.7/site-packages/cnucnu/helper.py", line 175, in split_rc
match = RC.match(version)
TypeError: expected string or buffer
Local variables in innermost frame:
re: <module 're' from '/usr/lib64/python2.7/re.pyc'>
version: ('3', '3_001')
RC: <_sre.SRE_Pattern object at 0x26a4810>
How to reproduce
1. cnucnu --shell
Created attachment 539622 [details]
Created attachment 539671 [details]
Patch to allow multiple groups in re. All groups are concat.
Created attachment 539693 [details]
This patch allows parsing of more complex patterns, e.g. the uhd from backtrace.
This feature has been added to cnucnu's git repository on fedorapeople and can be used now in the wiki. I will prepare an update for Fedora soon to allow to test it using the cnucnu shell.
FYI: cnucnu will be replaced by anitya/the-new-hotness soon:
Therefore a new update for Fedora does not make much sense.