def stats(local=False, remote=False, jail=None, chroot=None):

    opts = ''
    if local:
        opts += 'l'
    if remote:
        opts += 'r'

    cmd = _pkg(jail, chroot)
    cmd.append('stats')
    if opts:
        cmd.append('-' + opts)
    out = __salt__['cmd.run'](cmd, output_loglevel='trace', python_shell=False)
    return [x.strip('\t') for x in salt.utils.itertools.split(out, '\n')]
Return pkgng stats.
dataset/ETHPy150Open saltstack/salt/salt/modules/pkgng.py/stats