def run(self, arguments): problems = match_get_problems(arguments.patterns, authenticate=arguments.authenticate, executables=arguments.executables, components=arguments.components, since=arguments.since, until=arguments.until, n_latest=arguments.n_latest, not_reported=arguments.not_reported) for problem in problems: if problem.not_reportable and not arguments.unsafe: if reportclient.verbose > 0: print(problem.not_reportable_reason) print(_('Problem \'{0}\' cannot be reported').format(problem.short_id)) sys.exit(1) flags = report.LIBREPORT_WAIT | report.LIBREPORT_RUN_CLI if arguments.unsafe: flags |= report.LIBREPORT_IGNORE_NOT_REPORTABLE problem.chown() print(_("Reporting problem %s\n" % (problem.short_id))) report.report_problem_in_dir(problem.path, flags) if arguments.delete: problem.delete(problem.path)
def report(args): prob = match_get_problem(args.MATCH, auth=args.auth) if prob.not_reportable and not args.unsafe: if reportclient.verbose > 0: print(prob.not_reportable_reason) print(_('Problem \'{0}\' cannot be reported').format(prob.short_id)) sys.exit(1) flags = libreport.LIBREPORT_WAIT | libreport.LIBREPORT_RUN_CLI if args.unsafe: flags |= libreport.LIBREPORT_IGNORE_NOT_REPORTABLE prob.chown() libreport.report_problem_in_dir(prob.path, flags)
def report(args): prob = match_get_problem(args.MATCH, auth=args.auth) libreport.report_problem_in_dir( prob.path, libreport.LIBREPORT_WAIT | libreport.LIBREPORT_RUN_CLI)
def report(args): prob = match_get_problem(args.MATCH, auth=args.auth) libreport.report_problem_in_dir(prob.path, libreport.LIBREPORT_WAIT | libreport.LIBREPORT_RUN_CLI)