Issue #10986 has been updated by Matthias Pigulla.

The above PR at GitHub has been closed because it needs a rebase and lacks 
tests. Honestly, I am not a Ruby developer and afraid I won't be able to 
contribute these.

What I can tell is that the following patch solves the problem at least in the 
appdmg provider and will probably work in a similar fashion for pkgdmg.
<pre>
--- a/modules/puppet/lib/puppet/provider/package/appdmg.rb
+++ b/modules/puppet/lib/puppet/provider/package/appdmg.rb
@@ -58,7 +58,7 @@
     tmpdir = Dir.mktmpdir
     begin
       if %r{\A[A-Za-z][A-Za-z0-9+\-\.]*://} =~ cached_source
-        cached_source = File.join(tmpdir, name)
+        cached_source = File.join(tmpdir, name) + '.dmg'
         begin
           curl "-o", cached_source, "-C", "-", "-k", "-L", "-s", "--url", 
source
           Puppet.debug "Success: curl transfered [#{name}]"
</pre>

----------------------------------------
Bug #10986: "Failed to mount" in appdmg/pkgdmg provider
https://projects.puppetlabs.com/issues/10986#change-98685

* Author: Matthias Pigulla
* Status: Code Insufficient
* Priority: Normal
* Assignee: 
* Category: package
* Target version: 
* Affected Puppet version: 2.6.8
* Keywords: 
* Branch: https://github.com/puppetlabs/puppet/pull/56
----------------------------------------
Mac OS X's mount command sometimes complains "failed to mount - not recognized" 
for the downloaded file, and even if I haven't fully understood when/why this 
happens, using a .dmg or .pkg file extension for the temporary file seems to be 
a working solution.

The pull req is over there: https://github.com/puppetlabs/puppet/pull/56/



-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to