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

Proposed by Robie Basak on 2012-07-02
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 2012-07-02 Pending
Review via email: mp+113045@code.launchpad.net

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: https://launchpad.net/bugs/1015337
LP: #1020088 is a duplicate of ....
Traceback (most recent call last):
  File "./test-local", line 55, in <module>
    match_bug(dupe)
  File "./test-local", line 12, in match_bug
    report = db.download(bugnumber)
  File "/usr/lib/python2.7/dist-packages/apport/crashdb_impl/launchpad.py", 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.
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>
7
8+<!-- clamav -->
9+ <pattern url="https://launchpad.net/bugs/1015337">
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>
13+
14 </patterns>

Subscribers

People subscribed via source and target branches

to status/vote changes: