~brian-murray/daisy/test-swift-before-delete

« back to all changes in this revision

Viewing changes to daisy/submit.py

  • Committer: Brian Murray
  • Date: 2018-04-04 16:46:52 UTC
  • Revision ID: brian@canonical.com-20180404164652-d72c4o2hxyx64ghq
Don't ask for core files from 18.04 with libc6 2.26-0 in Dependencies

Show diffs side-by-side

added added

removed removed

Lines of Context:
421
421
            # so do not ask for a CORE file if they don't exist
422
422
            if not release:
423
423
                return (True, '%s OOPSID' % oops_id)
 
424
            # do not ask for a core file for crashes using the old version of
 
425
            # libc6 since they won't be retraceable. LP: #1760207
 
426
            if release == 'Ubuntu 18.04':
 
427
                deps = data.get('Dependencies', '')
 
428
                libc = [d for d in deps.split('\n') if d.startswith('libc6 2.26-0')]
 
429
                try:
 
430
                    if libc[0].startswith('libc6 2.26-0'):
 
431
                        return (True, '%s OOPSID' % oops_id)
 
432
                except KeyError:
 
433
                    pass
424
434
            package = report.get('Package', '')
425
435
            if not package:
426
436
                return (True, '%s OOPSID' % oops_id)