From 6aa6fdb119f55c3b66e0a13a7df076256083359c Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Sun, 23 Mar 2008 13:39:28 -0500 Subject: Applying patch by Ryan McBride to fix OpenBSD package matching. The actual problem was caused by the fix to #1001. --- CHANGELOG | 3 +++ lib/puppet/provider/package/openbsd.rb | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 657bac6d6..43103252f 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ + Applying patch by Ryan McBride to fix OpenBSD package + matching. The actual problem was caused by the fix to #1001. + Found all instances of methods where split() is used without any local variables and added a local variable -- see http://snurl.com/21zf8. My own testing showed that this diff --git a/lib/puppet/provider/package/openbsd.rb b/lib/puppet/provider/package/openbsd.rb index f76c37176..6c2e0895b 100755 --- a/lib/puppet/provider/package/openbsd.rb +++ b/lib/puppet/provider/package/openbsd.rb @@ -67,7 +67,7 @@ Puppet::Type.type(:package).provide :openbsd, :parent => Puppet::Provider::Packa # Search for the version info if info =~ /Information for (inst:)?#{@resource[:name]}-(\S+)/ - hash[:ensure] = $1 + hash[:ensure] = $2 else return nil end -- cgit