Merge pull request #29076 from RealKelsar/2015.8

We can't query installed use flags for a non installed pkg
This commit is contained in:
Mike Place 2015-11-23 09:19:40 -07:00
commit d9c32011b4

View File

@ -1437,7 +1437,7 @@ def latest(
cmp_func=cmp_func):
targets[pkg] = avail[pkg]
else:
if __salt__['portage_config.is_changed_uses'](pkg):
if not cur[pkg] or __salt__['portage_config.is_changed_uses'](pkg):
targets[pkg] = avail[pkg]
else:
for pkg in desired_pkgs: