def _get_desired_pkg(name, desired):
    if not desired[name] or desired[name].startswith(('<', '>', '=')):
        oper = ''
    else:
        oper = '='
    return '{0}{1}{2}'.format(name, oper,
                              '' if not desired[name] else desired[name])
Helper function that retrieves and nicely formats the desired pkg (and
dataset/ETHPy150Open saltstack/salt/salt/states/pkg.py/_get_desired_pkg