diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-06-18 19:56:19 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-06-18 19:56:19 +0000 |
| commit | 3f6c41334e3cd78c2323900d70fac519cccb3141 (patch) | |
| tree | 224f0332d077c5b5399d94dafd1c405003cf6dff | |
| parent | eb2326d97d38911eef39601eec44d434ddfa2503 (diff) | |
Applying patch by trombik to fix #628.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2614 980ebf18-57e1-0310-9a29-db15c13687c0
| -rw-r--r-- | CHANGELOG | 2 | ||||
| -rwxr-xr-x | lib/puppet/provider/package/ports.rb | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -1,3 +1,5 @@ + Applied patches by trombik to fix FreeBSD ports (#624 and #628). + Fixed the CA server so that it refuses to send back a certificate whose public key doesn't match the CSR. Instead, it tells the user to run 'puppetca --clean'. diff --git a/lib/puppet/provider/package/ports.rb b/lib/puppet/provider/package/ports.rb index 529dc7544..c17e47674 100755 --- a/lib/puppet/provider/package/ports.rb +++ b/lib/puppet/provider/package/ports.rb @@ -49,7 +49,7 @@ Puppet::Type.type(:package).provide :ports, :parent => :freebsd, :source => :fre match = $2 info = $3 - unless pkgstuff =~ /^(\w+)-([0-9].+)$/ + unless pkgstuff =~ /^(\S+)-([^-\s]+)$/ raise Puppet::PackageError, "Could not match package info '%s'" % pkgstuff end |
