<pre style='margin:0'>
Joshua Root (jmroot) pushed a commit to branch release-2.4
in repository macports-base.
</pre>
<p><a href="https://github.com/macports/macports-base/commit/ebdf7a2fd6cf31755a182e058a10c35539e5a8fd">https://github.com/macports/macports-base/commit/ebdf7a2fd6cf31755a182e058a10c35539e5a8fd</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit ebdf7a2fd6cf31755a182e058a10c35539e5a8fd
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Sat Jan 21 07:48:53 2017 +1100
<span style='display:block; white-space:pre;color:#404040;'> One more pkg filename fix
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> (cherry picked from commit 75584d888a6e298c1eca7659424e0e7e1bc7f500)
</span>---
src/package1.0/portdmg.tcl | 6 +++---
src/package1.0/tests/portdmg.test | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/package1.0/portdmg.tcl b/src/package1.0/portdmg.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index e7aeca3..7c9e27a 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/package1.0/portdmg.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/package1.0/portdmg.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -46,7 +46,7 @@ set_ui_prefix
</span> proc portdmg::dmg_main {args} {
global subport version revision package.destpath UI_PREFIX
<span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_msg "$UI_PREFIX [format [msgcat::mc "Creating disk image for %s-%s"] ${subport} ${version}]"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_msg "$UI_PREFIX [format [msgcat::mc "Creating disk image for %s-%s"] ${subport} ${version}_${revision}]"
</span>
if {[getuid] == 0 && [geteuid] != 0} {
seteuid 0; setegid 0
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -63,10 +63,10 @@ proc portdmg::package_dmg {portname portversion portrevision} {
</span>
set tmp_image ${package.destpath}/${imagename}.tmp.dmg
set final_image ${package.destpath}/${imagename}.dmg
<span style='display:block; white-space:pre;background:#ffe0e0;'>- set pkgpath ${package.destpath}/${portname}-${portversion}.pkg
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set pkgpath ${package.destpath}/${imagename}.pkg
</span>
if {[file readable $final_image] && ([file mtime ${final_image}] >= [file mtime ${portpath}/Portfile])} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_msg "$UI_PREFIX [format [msgcat::mc "Disk Image for %s version %s is up-to-date"] ${portname} ${portversion}]"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_msg "$UI_PREFIX [format [msgcat::mc "Disk Image for %s version %s is up-to-date"] ${portname} ${portversion}_${portrevision}]"
</span> return 0
}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/package1.0/tests/portdmg.test b/src/package1.0/tests/portdmg.test
</span><span style='display:block; white-space:pre;color:#808080;'>index c7bb58e..ffd924b 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/package1.0/tests/portdmg.test
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/package1.0/tests/portdmg.test
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -37,7 +37,7 @@ test package_dmg {
</span> set UI_PREFIX >
file mkdir $pwd/pkg
<span style='display:block; white-space:pre;background:#ffe0e0;'>- close [open $pwd/pkg/fondu-060102.pkg w+]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ close [open $pwd/pkg/fondu-${version}_${revision}.pkg w+]
</span>
} -body {
if {[portdmg::dmg_main] != 0} {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -46,7 +46,7 @@ test package_dmg {
</span> if {![file exists $pwd/pkg/fondu-060102_1.dmg]} {
return "FAIL: missing .dmg file"
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if {![file exists $pwd/pkg/fondu-060102_1/fondu-060102.pkg]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {![file exists $pwd/pkg/fondu-060102_1/fondu-060102_1.pkg]} {
</span> return "FAIL: invalid package.destpath"
}
return "Package dmg successful."
</pre><pre style='margin:0'>
</pre>