Issue #2370 has been updated by Alan Barrett.
Before OpenBSD added "flavors", it used to be the case that the last hyphen separated the package name from the version number; the name could contain embedded hyphens but the version could not. I don't know whether they allow multiple flavours to be appended, but I'll assume that they do, and that appended flavours can be differentiated from version numbers by whether or not they begin with a digit; so, I assume that, of all the hyphen-separated components, the last one that begins with a digit is the version number. I think this regular expression should store the name, version, and flavour (with hyphen prefix), in $1, $2, and $3: <pre> ^(.*)-(\d[^-]*)((?:-\D[^-]*)*)$ </pre> ---------------------------------------- Feature #2370: OpenBSD package provider could be a little more robust http://projects.puppetlabs.com/issues/2370 Author: Joe McDonagh Status: Accepted Priority: Normal Assigned to: Category: package Target version: unplanned Affected version: 0.25.4 Keywords: Branch: The provider for OBSD packages is pretty brute- it complains it's not versionable, yet OpenBSD packages usually take the form of ${PACKAGENAME}-${VERSION}, so if I try to ensure something like 'screen' is installed it fails because I need to specify the version inside the package name. Alternatively, there could be a parameter such as force, that installs each package there. I'm going to guess this is a 'needs design decision' type of ticket. -- 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.
