puppetlabs/puppet — pull request #1311 by mrrcollins (2012-12-04 14:13:45+00:00)
Title: Bug #17898 Dir.mktmpdir not supported under Ruby 1.8.6

Bug #17898 pkgdmg provider broken since version 2.7.13 under OS X 10.5 Leopard

Dir.mktempdir was added in Puppet 2.7.13 as a security issue to randomize the location of downloaded files, with the unfortunate side affect of breaking Puppet under OS X 10.5.

This change fixes the issue in pkgdmg.rb and appdmg.rb