def resolve_packages(all_packages, desclist):
    if not desclist:
        return list()

    if isinstance(desclist, type("")):
        desclist = [x.strip() for x in desclist.split(',')]
    ret = []

    for req in desclist:
        what,name = req.split(':')
        if what == 'package':
            pkg = all_packages[name]
            ret.append(pkg)
            continue
        if what == 'group':
            for pkg in packages_in_group(all_packages.values(), name):
                if pkg in ret:
                    continue
                ret.append(pkg)
        else:
            raise ValueError('Unknown descriptor: "%s:%s"' % (what, name))
        continue
    return ret
:param refresher:
dataset/ETHPy150Open hwaf/hwaf/py-hwaftools/orch/envmunge.py/resolve_packages--crossover with--dataset/ETHPy150Open dbcli/pgcli/tests/test_completion_refresher.py/test_refresh_called_once