コード例 #1
0
def get_composed_builds(baseurl):
    """
    Return a list of latest builds that are in the given compose
    """
    import compose

    c = compose.Compose(baseurl)
    pdata = c.json_rpms()
    p = compose.packages_from_compose(pdata)
    return p
コード例 #2
0
ファイル: buildroot2html.py プロジェクト: CentOS/sync2git
def composed_url2pkgs(baseurl):
    """
    Return a list of latest packages that are in the given compose
    """
    import compose

    c = compose.Compose(baseurl)
    cid = c.data_id()
    cstat = c.data_status()
    pdata = c.json_rpms()
    p = compose.packages_from_compose(pdata)
    pb = compose.packages_bin_from_compose(pdata)
    return p, pb, cid, cstat