puppet-portage icon indicating copy to clipboard operation
puppet-portage copied to clipboard

package_* types do not update version when it was not initially defined

Open tampakrap opened this issue 12 years ago • 2 comments

package_mask { 'media-sound/amarok': }

This creates an entry media-sound/amarok in /etc/portage/package.mask/default. On a second run:

package_mask { 'media-sound/amarok':
  version => '=2.5.0',
}

This does NOT update the entry to =media-sound/amarok-2.5.0

This bug affects only the version attribute on all package_* types. It does NOT affect keywords,use,ensure,target.

tampakrap avatar Feb 21 '13 12:02 tampakrap

This appears to be a limitation in the parsedfile provider: https://projects.puppetlabs.com/issues/6628

vikraman avatar Oct 05 '13 09:10 vikraman

according to @adrienthebo the solution is to replace parsedfile with https://github.com/adrienthebo/puppet-filemapper

tampakrap avatar Oct 05 '13 21:10 tampakrap