[101649] trunk/base/src/port1.0/portextract.tcl

blair at macports.org blair at macports.org
Tue Jan 15 20:47:51 PST 2013


Revision: 101649
          https://trac.macports.org/changeset/101649
Author:   blair at macports.org
Date:     2013-01-15 20:47:51 -0800 (Tue, 15 Jan 2013)
Log Message:
-----------
portextract::extract_start: always unmount a dmg, even if it fails to copy.

Modified Paths:
--------------
    trunk/base/src/port1.0/portextract.tcl

Modified: trunk/base/src/port1.0/portextract.tcl
===================================================================
--- trunk/base/src/port1.0/portextract.tcl	2013-01-16 04:36:29 UTC (rev 101648)
+++ trunk/base/src/port1.0/portextract.tcl	2013-01-16 04:47:51 UTC (rev 101649)
@@ -108,7 +108,7 @@
         set dmg_mount [mkdtemp "/tmp/mports.XXXXXXXX"]
         option extract.cmd [findBinary hdiutil ${portutil::autoconf::hdiutil_path}]
         option extract.pre_args attach
-        option extract.post_args "-private -readonly -nobrowse -mountpoint \\\"${dmg_mount}\\\" && [findBinary cp ${portutil::autoconf::cp_path}] -Rp \\\"${dmg_mount}\\\" \\\"${extract.dir}/${distname}\\\" && ${extract.cmd} detach \\\"${dmg_mount}\\\" && [findBinary rmdir ${portutil::autoconf::rmdir_path}] \\\"${dmg_mount}\\\""
+        option extract.post_args "-private -readonly -nobrowse -mountpoint \\\"${dmg_mount}\\\" && [findBinary cp ${portutil::autoconf::cp_path}] -Rp \\\"${dmg_mount}\\\" \\\"${extract.dir}/${distname}\\\"; status=\$?; ${extract.cmd} detach \\\"${dmg_mount}\\\" && [findBinary rmdir ${portutil::autoconf::rmdir_path}] \\\"${dmg_mount}\\\"; exit \$status"
     }
 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130115/f0505e7f/attachment.html>


More information about the macports-changes mailing list