Merge lp:~racb/apport/clamav_1015337 into lp:~ubuntu-bugcontrol/apport/ubuntu-bugpatterns

Proposed by Robie Basak
Status: Merged
Merged at revision: 531
Proposed branch: lp:~racb/apport/clamav_1015337
Merge into: lp:~ubuntu-bugcontrol/apport/ubuntu-bugpatterns
Diff against target: 14 lines (+6/-0)
1 file modified
bugpatterns.xml (+6/-0)
To merge this branch: bzr merge lp:~racb/apport/clamav_1015337
Reviewer Review Type Date Requested Status
Ubuntu Bug Control Pending
Review via email:

Description of the change

Tested with test-local. Note that I get this error, which I think doesn't matter for this:

$ ./test-local 1020088
LP: #1020088: Matched bug pattern:
LP: #1020088 is a duplicate of ....
Traceback (most recent call last):
  File "./test-local", line 55, in <module>
  File "./test-local", line 12, in match_bug
    report =
  File "/usr/lib/python2.7/dist-packages/apport/crashdb_impl/", line 266, in download
    assert m, 'bug description must contain standard apport format data'
AssertionError: bug description must contain standard apport format data

To post a comment you must log in.
Revision history for this message
Brian Murray (brian-murray) wrote :

The error is just because bug 1015337 is not a apport reported bug so is missing data that apport expects. I guess maybe test-local could check the tags of the bug before calling match_bug() and then the traceback would be avoided.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'bugpatterns.xml'
2--- bugpatterns.xml 2012-06-28 20:58:29 +0000
3+++ bugpatterns.xml 2012-07-02 14:00:29 +0000
4@@ -1955,4 +1955,10 @@
5 <re key="Traceback">AttributeError: 'MachineState' interfaces do not define a constant 'Discarding'</re>
6 </pattern>
8+<!-- clamav -->
9+ <pattern url="">
10+ <re key="Package">^clamav-base 0.97.5\+dfsg-1ubuntu0.12.04.1</re>
11+ <re key="DpkgTerminalLog">install: cannot stat `/usr/share/doc/clamav-base/examples/main.cvd': No such file or directory</re>
12+ </pattern>
14 </patterns>