We can't query installed use flags for a non installed pkg. Also one if is enough...

This commit is contained in:
Tetja Rediske 2015-11-20 17:05:55 +01:00
parent 96566d3060
commit f3d1ba1509

View File

@ -1437,7 +1437,7 @@ def latest(
cmp_func=cmp_func):
targets[pkg] = avail[pkg]
else:
if not cur[pkg] or 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: