Issue #2370 has been updated by Alan Barrett.

Uwe Stuehler wrote:
> FYI: The "official" documentation for OpenBSD package names is the man page 
> OpenBSD::PackageName(3p)

Thanks.  I don't use OpenBSD, and failed to find that in a web search.

> from_string() uses the following Perl regular expression: /^(.*?)\-(\d.*)$/o

This regular expression treats the first hyphen-separated component that begins 
with a digit as the version number; the regular expression that I gave in 
comment 4 above treats the last such component as the version number.  The 
difference becomes apparent only when a flavour name begins with a digit, or 
when a portion of the base package name begins with a digit, and either of 
those seems unlikely to happen, but changing ".*" to ".*?" near the beginning 
of the regular expression in comment 4 would make it consistent with the 
documented behaviour of from_string().
----------------------------------------
Feature #2370: OpenBSD package provider could be a little more robust
http://projects.puppetlabs.com/issues/2370

Author: Joe McDonagh
Status: Ready for Testing
Priority: Normal
Assigned to: Joe McDonagh
Category: package
Target version: 2.6
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.

Reply via email to