Issue #17807 has been updated by eric sorenson.
Status changed from Unreviewed to Needs More Information
Assignee set to Jim Pirzyk
Hi Jim, thanks for the bug report and the patch. One question, and I apologise
because I do not have a freebsd system to reproduce / investigate this on:
won't this change make the uninstall match substrings of longer package names?
Like `package {'ruby': ensure=>absent}` would match not only `ruby-1.8.7` but
also a hypothetical `ruby-devel-1.8.7`, `ruby-lib-1.8.7`, etc -- please excuse
my redhat-centric view of the universe.
I've put this ticket's status into "Needs more Information" and assigned it to
you. Please either (a) update it with the information I've requested and
re-assign it to me if you need more help, or (b) change the status to "Closed"
if you were able to resolve the issue on your own.
----------------------------------------
Bug #17807: pkg_delete on FreeBSD does not work
https://projects.puppetlabs.com/issues/17807#change-79718
Author: Jim Pirzyk
Status: Needs More Information
Priority: Normal
Assignee: Jim Pirzyk
Category:
Target version:
Affected Puppet version:
Keywords: FreeBSD, pkg_delete
Branch:
Given this puppet code:
package { 'gawk':
ensure => absent
}
generates this error:
err: /Stage[main]/Awk::Gawk/Pkg[gawk]/Package[gawk]/ensure: change from 4.0.1
to absent failed: Execution of '/usr/sbin/pkg_delete gawk-absent' returned 1:
pkg_delete: no such package 'gawk-absent' installed
Obviously this is not a proper pkg_delete command line. It should not be using
the ensure parameter. See provided patch for simple fix (using regex to match
version).
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.