def _get_pkg_ds_avail():
    avail = "/var/lib/dpkg/available"
    if not salt.utils.which('dselect') or not os.path.exists(avail):
        return dict()

    # Do not update with dselect, just read what is.
    ret = dict()
    pkg_mrk = "Package:"
    pkg_name = "package"
    for pkg_info in open(avail).read().split(pkg_mrk):
        nfo = dict()
        for line in (pkg_mrk + pkg_info).split(os.linesep):
            line = line.split(": ", 1)
            if len(line) != 2:
                continue
            key, value = line
            if value.strip():
                nfo[key.lower()] = value
        if nfo.get(pkg_name):
            ret[nfo[pkg_name]] = nfo

    return ret
A script editor executer control used to issue script commands to Maya.
dataset/ETHPy150Open saltstack/salt/salt/modules/dpkg.py/_get_pkg_ds_avail--crossover with--dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/site-packages/pymel-1.0.5/extras/completion/py/pymel/core/windows.py/cmdScrollFieldExecuter