Exemplo n.º 1
0
    print('got %s' % gh_org.login)
    if not args.repos:
        sys.stdout.write('- getting org\'s repo list...')
        sys.stdout.flush()
        gh_org_repos = dict((r.name, r) for r in gh_org.get_repos())
        print('got %d' % len(gh_org_repos))
    else:
        gh_org_repos = dict()

    print('')

    for repo_name in sorted(rd.get_repo_list()):
        if args.repos and repo_name not in args.repos:
            continue

        r = rd.get_repo(repo_name)

        if not r.full_version:
            continue

        print('%s %s:' % (r.name, r.full_version))

        r_re = re.match(url_re, r.url)
        if not r_re:
            print('- unable to parse URL')
            continue

        real_org = r_re.group(3)
        real_name = r_re.group(4)[0:-4] if r_re.group(4).endswith('.git') else r_re.group(4)
        real_ver = r.full_version.split('-')[0]
        real_rel = r.full_version.split('-')[1]