Commit bfa9a958 authored by Andoni Morales Alastruey's avatar Andoni Morales Alastruey Committed by GStreamer Marge Bot
Browse files

Fix DMG files extraction

Part-of: <!673>
parent 92fee714
......@@ -341,9 +341,9 @@ async def unpack(filepath, output_dir, logfile=None):
vol_name = '/Volumes/' + os.path.splitext(os.path.split(filepath)[1])[0]
if not os.path.exists(output_dir):
call(['hdiutil', 'attach', filepath])
call(['cp', '-r', vol_name, output_dir])
call(['hdiutil', 'detach', vol_name])
new_call(['hdiutil', 'attach', filepath])
new_call(['cp', '-r', vol_name, output_dir])
new_call(['hdiutil', 'detach', vol_name])
raise FatalError("Unknown tarball format %s" % filepath)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment