<pre style='margin:0'>
Joshua Root (jmroot) pushed a commit to branch release-2.6
in repository macports-base.
</pre>
<p><a href="https://github.com/macports/macports-base/commit/26fd3daf67f9b91dd47995702335b3128e34d085">https://github.com/macports/macports-base/commit/26fd3daf67f9b91dd47995702335b3128e34d085</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 26fd3daf67f9b91dd47995702335b3128e34d085
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Sun Oct 13 22:53:31 2019 +1100
<span style='display:block; white-space:pre;color:#404040;'> Add applications_dir_frozen and frameworks_dir_frozen
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Analogous to prefix_frozen, these are what we really want to check when
</span><span style='display:block; white-space:pre;color:#404040;'> filtering archive_sites.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> (cherry picked from commit 963a940da715fb55c5a602777cace55bef5df020)
</span>---
src/macports1.0/macports.tcl | 14 ++++++++++++--
src/package1.0/portarchivefetch.tcl | 6 +++---
2 files changed, 15 insertions(+), 5 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/macports1.0/macports.tcl b/src/macports1.0/macports.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index 2e18650..63439d8 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/macports1.0/macports.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/macports1.0/macports.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -66,8 +66,9 @@ namespace eval macports {
</span> rsync_server rsync_options rsync_dir startupitem_autostart startupitem_type startupitem_install \
place_worksymlink macportsuser sudo_user \
configureccache ccache_dir ccache_size configuredistcc configurepipe buildnicevalue buildmakejobs \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- applications_dir current_phase frameworks_dir developer_dir universal_archs build_arch \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- os_arch os_endian os_version os_major os_minor os_platform os_subplatform macosx_version macosx_sdk_version macosx_deployment_target \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ applications_dir applications_dir_frozen current_phase frameworks_dir frameworks_dir_frozen \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ developer_dir universal_archs build_arch os_arch os_endian os_version os_major os_minor \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ os_platform os_subplatform macosx_version macosx_sdk_version macosx_deployment_target \
</span> packagemaker_path default_compilers sandbox_enable sandbox_network delete_la_files cxx_stdlib \
pkg_post_unarchive_deletions $user_options"
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -634,6 +635,8 @@ proc mportinit {{up_ui_options {}} {up_options {}} {up_variations {}}} {
</span> macports::prefix \
macports::macportsuser \
macports::prefix_frozen \
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ macports::applications_dir_frozen \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ macports::frameworks_dir_frozen \
</span> macports::xcodebuildcmd \
macports::xcodeversion \
macports::configureccache \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -948,6 +951,13 @@ Please edit sources.conf and change '$url' to '[string range $url 0 end-6]tarbal
</span> if {![info exists macports::applications_dir]} {
set macports::applications_dir /Applications/MacPorts
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ set macports::applications_dir_frozen ${macports::applications_dir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[info exists macports::frameworks_dir]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set macports::frameworks_dir_frozen ${macports::frameworks_dir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set macports::frameworks_dir_frozen ${macports::prefix_frozen}/Library/Frameworks
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span>
# Export verbosity.
if {![info exists portverbose]} {
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/package1.0/portarchivefetch.tcl b/src/package1.0/portarchivefetch.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index 243f2a2..d6f5d0b 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/package1.0/portarchivefetch.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/package1.0/portarchivefetch.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -65,7 +65,7 @@ default archive_sites.listpath port1.0/fetch
</span> default archive.subdir {${subport}}
proc portarchivefetch::filter_sites {} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- global prefix_frozen frameworks_dir applications_dir porturl \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ global prefix_frozen frameworks_dir_frozen applications_dir_frozen porturl \
</span> cxx_stdlib delete_la_files \
portfetch::mirror_sites::sites portfetch::mirror_sites::archive_type \
portfetch::mirror_sites::archive_prefix \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -98,8 +98,8 @@ proc portarchivefetch::filter_sites {} {
</span> }
if {$portfetch::mirror_sites::sites($site) ne {} &&
$portfetch::mirror_sites::archive_prefix($site) eq $prefix_frozen &&
<span style='display:block; white-space:pre;background:#ffe0e0;'>- $portfetch::mirror_sites::archive_frameworks_dir($site) eq $frameworks_dir &&
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- $portfetch::mirror_sites::archive_applications_dir($site) eq $applications_dir &&
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $portfetch::mirror_sites::archive_frameworks_dir($site) eq $frameworks_dir_frozen &&
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $portfetch::mirror_sites::archive_applications_dir($site) eq $applications_dir_frozen &&
</span> $portfetch::mirror_sites::archive_cxx_stdlib($site) eq $cxx_stdlib &&
$portfetch::mirror_sites::archive_delete_la_files($site) eq $delete_la_files &&
![catch {archiveTypeIsSupported $portfetch::mirror_sites::archive_type($site)}]} {
</pre><pre style='margin:0'>
</pre>