def get_composed_modules(baseurl): """ Return a list of latest modules that are in the given compose """ import compose c = compose.Compose(baseurl) mdata = c.json_modules() m = compose.modules_from_compose(mdata) return compose.dedup_modules(m)
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
def get_composed_modules(baseurl): """ Return a list of latest modules that are in the given compose """ import compose c = compose.Compose(baseurl) cid = c.data_id() cstat = c.data_status() print('Mod Compose:', cid) print(' Status:', cstat) mdata = c.json_modules() m = compose.modules_from_compose(mdata) return compose.dedup_modules(m)