def add_pkg(pkgs, name, pkgver):
    '''
    Add a package to a dict of installed packages.

    CLI Example:

    .. code-block:: bash

        salt '*' pkg_resource.add_pkg '{}' bind 9
    '''
    try:
        pkgs.setdefault(name, []).append(pkgver)
    except __HOLE__ as exc:
        log.exception(exc)
dataset/ETHPy150Open saltstack/salt/salt/modules/pkg_resource.py/add_pkg