~juliank/ubuntu/bionic/apport/snap

« back to all changes in this revision

Viewing changes to bin/apport-retrace

  • Committer: Brian Murray
  • Date: 2018-02-14 18:17:53 UTC
  • mfrom: (1369.165.76 trunk)
  • Revision ID: brian@canonical.com-20180214181753-n4i933etld3rilym
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
                           help=_('Display retraced stack traces and ask for confirmation before sending them to the crash database.'))
70
70
    argparser.add_argument('--duplicate-db', metavar='PATH',
71
71
                           help=_('Path to the duplicate sqlite database (default: no duplicate checking)'))
 
72
    argparser.add_argument('--no-stacktrace-source', action='store_false', dest='stacktrace_source',
 
73
                           help=_('Do not add StacktraceSource to the report.'))
72
74
    argparser.add_argument('report', metavar='some.crash|NNNN',
73
75
                           help='apport .crash file or the crash ID to process')
74
76
 
397
399
        apt_root = os.path.join(cache, report['DistroRelease'], 'apt')
398
400
    else:
399
401
        apt_root = None
400
 
    gen_source_stacktrace(report, apt_root)
 
402
    if options.stacktrace_source:
 
403
        gen_source_stacktrace(report, apt_root)
401
404
    report.add_kernel_crash_info()
402
405
 
403
406
modified = False