

def get_selections():
    '\n    Get the state of ``dkpg`` selections.\n\n    Returns a dict with state => [packages].\n    '
    with settings(hide('stdout')):
        res = run_as_root('dpkg --get-selections')
    selections = dict()
    for line in res.splitlines():
        (package, status) = line.split()
        selections.setdefault(status, list()).append(selections)
    return selections

dataset/ETHPy150Open ronnix/fabtools/fabtools/deb.py get_selections/VarMisuse@72/133 `package`->`selections`