# sysfsutils does not show up in the linux-diag SF rss feed
        'sysfsutils',

        # Really no hope left to automate those packages
        'rpm')

    # Messages
    if options.output:
        output_fd = open(options.output, 'w')
    else:
        output_fd = sys.stdout

    m = Message()
    m.set_fd(output_fd)
    m.set_verbosity(options.verbose)

    dispatcher = Dispatcher()

    # Holds the (package, obs version, upstream version) to display in the
    # summary at the end
    display_packages = []

    # The object representing the OBS project we are working with
    repo = OBSRepository(options.project)

    if options.package:
        name = options.package

        if not repo.has_package(name):
            m.warn("could not find %s in %s" % (name, options.project))
Exemple #2
0
        # sysfsutils does not show up in the linux-diag SF rss feed
        'sysfsutils',

        # Really no hope left to automate those packages
        'rpm'
    )

    # Messages
    if options.output:
        output_fd = open(options.output, 'w')
    else:
        output_fd = sys.stdout

    m = Message()
    m.set_fd(output_fd)
    m.set_verbosity(options.verbose)

    dispatcher = Dispatcher()

    # Holds the (package, obs version, upstream version) to display in the
    # summary at the end
    display_packages = []

    # The object representing the OBS project we are working with
    repo = OBSRepository(options.project)

    if options.package:
        name = options.package

        if not repo.has_package(name):
            m.warn("could not find %s in %s" % (name, options.project))