freebsd-ports/sysutils/puppet/files/patch-package-name-with-dash
Martin Wilke 6d8ee670f5 - Update to 0.22.4
PR:		112927
Submitted by:	Tomoyuki Sakurai <cherry@trombik.org> (maintainer)
2007-05-27 11:31:25 +00:00

13 lines
528 B
Text

support package that contains '-' in its name, like syslog-ng
http://reductivelabs.com/trac/puppet/ticket/628
--- lib/puppet/provider/package/ports.rb.orig Wed May 9 17:12:39 2007
+++ lib/puppet/provider/package/ports.rb Wed May 9 17:13:57 2007
@@ -47,7 +47,7 @@
match = $2
info = $3
- unless pkgstuff =~ /^(\w+)-([0-9].+)$/
+ unless pkgstuff =~ /^(\S+)-([^-\s]+)$/
raise Puppet::PackageError,
"Could not match package info '%s'" % pkgstuff
end