<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/13a77b94dab96fd64fc30694cadb62c5dda02567">https://github.com/macports/macports-base/commit/13a77b94dab96fd64fc30694cadb62c5dda02567</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 13a77b94dab96fd64fc30694cadb62c5dda02567
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Mon Aug 17 16:11:22 2020 -0500

<span style='display:block; white-space:pre;color:#404040;'>    Always pass fs-traverse a list of paths
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    fs-traverse takes a list of paths to traverse. Passing just a path works
</span><span style='display:block; white-space:pre;color:#404040;'>    if the path doesn't contain any whitespace but fails if it does, so pass
</span><span style='display:block; white-space:pre;color:#404040;'>    the path in a list which always works.
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    This fixes, for example, chown failing when passed a path that contains
</span><span style='display:block; white-space:pre;color:#404040;'>    a space.
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    (cherry picked from commit 52609c9cce9da9d450aa3ccccc08b48b37c49788)
</span>---
 src/port1.0/portdestroot.tcl | 4 ++--
 src/port1.0/portinstall.tcl  | 2 +-
 src/port1.0/portutil.tcl     | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/port1.0/portdestroot.tcl b/src/port1.0/portdestroot.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index 35c5f80b..f28905a6 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/port1.0/portdestroot.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/port1.0/portdestroot.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -144,7 +144,7 @@ proc portdestroot::destroot_finish {args} {
</span>     # Prevent overlinking due to glibtool .la files: https://trac.macports.org/ticket/38010
     ui_debug "Fixing glibtool .la files in destroot for ${subport}"
     set la_file_list [list]
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    fs-traverse -depth fullpath ${destroot} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    fs-traverse -depth fullpath [list $destroot] {
</span>         if {[file extension $fullpath] eq ".la" && ([file type $fullpath] eq "file" || [file type $fullpath] eq "link")} {
             if {[file type $fullpath] eq "link" && [file pathtype [file link $fullpath]] ne "relative"} {
                 # prepend $destroot to target of absolute symlinks
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -182,7 +182,7 @@ proc portdestroot::destroot_finish {args} {
</span>             xinstall -c -m 0644 /dev/null ${path}/.turd_${subport}
         }
     }
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    fs-traverse -depth dir ${destroot} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    fs-traverse -depth dir [list ${destroot}] {
</span>         if {[file type $dir] eq "directory"} {
             catch {file delete $dir}
         }
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/port1.0/portinstall.tcl b/src/port1.0/portinstall.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index 83ca0b9f..dc3b29dd 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/port1.0/portinstall.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/port1.0/portinstall.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -272,7 +272,7 @@ proc portinstall::create_archive {location archive.type} {
</span>     # also save the contents for our own use later
     set installPlist {}
     set destpathLen [string length $destpath]
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    fs-traverse -depth fullpath $destpath {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    fs-traverse -depth fullpath [list $destpath] {
</span>         if {[file type $fullpath] eq "directory"} {
             continue
         }
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/port1.0/portutil.tcl b/src/port1.0/portutil.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index 64d166c9..6b9ce192 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/port1.0/portutil.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/port1.0/portutil.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -2865,7 +2865,7 @@ proc merge {base} {
</span> 
     # traverse the base-architecture directory
     set basepath "${base}/${base_arch}"
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    fs-traverse file "${basepath}" {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    fs-traverse file [list $basepath] {
</span>         set fpath [string range "${file}" [string length "${basepath}"] [string length "${file}"]]
         if {${fpath} ne ""} {
             # determine the type (dir/file/link)
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -2922,7 +2922,7 @@ proc chown {path user} {
</span>     lchown $path $user
 
     if {[file isdirectory $path]} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>-        fs-traverse myfile ${path} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        fs-traverse myfile [list $path] {
</span>             lchown $myfile $user
         }
     }
</pre><pre style='margin:0'>

</pre>