mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
We can't query installed use flags for a non installed pkg
This commit is contained in:
parent
14b5d0ed0f
commit
96566d3060
1 changed files with 1 additions and 1 deletions
|
@ -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 if __salt__['portage_config.is_changed_uses'](pkg):
|
||||
targets[pkg] = avail[pkg]
|
||||
else:
|
||||
for pkg in desired_pkgs:
|
||||
|
|
Loading…
Add table
Reference in a new issue