Example #1
0
    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)
Example #2
0
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)
Example #3
0
File: cli.py Project: xsuchy/abrt
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)
Example #4
0
File: cli.py Project: jfilak/abrt
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)