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
Wrapper for json_configs where type is 'models'
dataset/ETHPy150Open saltstack/salt/salt/modules/pkgng.py/refresh_db--crossover with--dataset/ETHPy150Open theusual/kaggle-seeclickfix-ensemble/Miroslaw/config.py/model_configs