mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Merge pull request #29045 from RealKelsar/develop
Gentoo new package installation
This commit is contained in:
commit
2ce85f3dd4
@ -623,11 +623,11 @@ def install(name=None,
|
||||
# If no prefix characters were supplied and verstr contains a version, use '='
|
||||
if len(verstr) > 0 and verstr[0] != ':' and verstr[0] != '[':
|
||||
prefix = prefix or '='
|
||||
target = '"{0}{1}-{2}"'.format(prefix, param, verstr)
|
||||
target = '{0}{1}-{2}'.format(prefix, param, verstr)
|
||||
else:
|
||||
target = '"{0}{1}"'.format(param, verstr)
|
||||
target = '{0}{1}'.format(param, verstr)
|
||||
else:
|
||||
target = '"{0}"'.format(param)
|
||||
target = '{0}'.format(param)
|
||||
|
||||
if '[' in target:
|
||||
old = __salt__['portage_config.get_flags_from_package_conf']('use', target[1:-1])
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user