[101132] trunk/base/src/package1.0/portmpkg.tcl

blair at macports.org blair at macports.org
Fri Jan 4 14:36:04 PST 2013


Revision: 101132
          https://trac.macports.org/changeset/101132
Author:   blair at macports.org
Date:     2013-01-04 14:36:04 -0800 (Fri, 04 Jan 2013)
Log Message:
-----------
portmpkg: on OS X >= 10.6 using productbuild: include epoch in mpkg version number.

Modified Paths:
--------------
    trunk/base/src/package1.0/portmpkg.tcl

Modified: trunk/base/src/package1.0/portmpkg.tcl
===================================================================
--- trunk/base/src/package1.0/portmpkg.tcl	2013-01-04 22:36:01 UTC (rev 101131)
+++ trunk/base/src/package1.0/portmpkg.tcl	2013-01-04 22:36:04 UTC (rev 101132)
@@ -186,7 +186,8 @@
     if {${package.flat} && ${os.major} >= 10} {
         write_distribution ${workpath}/Distribution $portname $dependencies
         set productbuild [findBinary productbuild]
-        set cmdline "$productbuild --resources ${resources_path} --identifier org.macports.mpkg.${portname} --distribution ${workpath}/Distribution --package-path ${packages_path} --version ${portversion}.${portrevision} ${mpkgpath}"
+        set v [portpkg::mp_version_to_apple_version $portepoch $portversion $portrevision]
+        set cmdline "$productbuild --resources ${resources_path} --identifier org.macports.mpkg.${portname} --distribution ${workpath}/Distribution --package-path ${packages_path} --version ${v} ${mpkgpath}"
         ui_debug "Running command line: $cmdline"
         system $cmdline
     }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130104/37b87749/attachment.html>


More information about the macports-changes mailing list