Merge pull request #29045 from RealKelsar/develop

Gentoo new package installation
This commit is contained in:
Mike Place 2015-11-19 12:03:49 -07:00
commit 2ce85f3dd4
2 changed files with 4 additions and 4 deletions

View File

@ -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])

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: