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: 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.
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
=== modified file 'bugpatterns.xml'
--- bugpatterns.xml 2012-06-28 20:58:29 +0000
+++ bugpatterns.xml 2012-07-02 14:00:29 +0000
@@ -1955,4 +1955,10 @@
1955 <re key="Traceback">AttributeError: 'MachineState' interfaces do not define a constant 'Discarding'</re>1955 <re key="Traceback">AttributeError: 'MachineState' interfaces do not define a constant 'Discarding'</re>
1956 </pattern>1956 </pattern>
19571957
1958<!-- clamav -->
1959 <pattern url="https://launchpad.net/bugs/1015337">
1960 <re key="Package">^clamav-base 0.97.5\+dfsg-1ubuntu0.12.04.1</re>
1961 <re key="DpkgTerminalLog">install: cannot stat `/usr/share/doc/clamav-base/examples/main.cvd': No such file or directory</re>
1962 </pattern>
1963
1958</patterns>1964</patterns>