def refresh_db(jail=None, chroot=None, force=False):
    cmd = _pkg(jail, chroot)
    cmd.append('update')
    if force:
        cmd.append('-f')
    return __salt__['cmd.retcode'](cmd, python_shell=False) == 0


# Support pkg.update to refresh the db, since this is the CLI usage
Refresh PACKAGESITE contents
dataset/ETHPy150Open saltstack/salt/salt/modules/pkgng.py/refresh_db