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
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