<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[125619] trunk/base/src/macports1.0</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="https://trac.macports.org/changeset/125619">125619</a></dd>
<dt>Author</dt> <dd>jmr@macports.org</dd>
<dt>Date</dt> <dd>2014-09-22 16:28:41 -0700 (Mon, 22 Sep 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>use eq/ne for string comparisons in macports1.0</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkbasesrcmacports10doctortcl">trunk/base/src/macports1.0/doctor.tcl</a></li>
<li><a href="#trunkbasesrcmacports10macportstcl">trunk/base/src/macports1.0/macports.tcl</a></li>
<li><a href="#trunkbasesrcmacports10macports_dlisttcl">trunk/base/src/macports1.0/macports_dlist.tcl</a></li>
<li><a href="#trunkbasesrcmacports10testsmacportstest">trunk/base/src/macports1.0/tests/macports.test</a></li>
<li><a href="#trunkbasesrcmacports10testsmacports_dlisttest">trunk/base/src/macports1.0/tests/macports_dlist.test</a></li>
<li><a href="#trunkbasesrcmacports10testsmacports_utiltest">trunk/base/src/macports1.0/tests/macports_util.test</a></li>
<li><a href="#trunkbasesrcmacports10teststesttcl">trunk/base/src/macports1.0/tests/test.tcl</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkbasesrcmacports10doctortcl"></a>
<div class="modfile"><h4>Modified: trunk/base/src/macports1.0/doctor.tcl (125618 => 125619)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/base/src/macports1.0/doctor.tcl        2014-09-22 23:02:06 UTC (rev 125618)
+++ trunk/base/src/macports1.0/doctor.tcl        2014-09-22 23:28:41 UTC (rev 125619)
</span><span class="lines">@@ -141,7 +141,7 @@
</span><span class="cx"> 
</span><span class="cx">         set version ${macports::macosx_version}
</span><span class="cx"> 
</span><del>-        if {$version == 10.9} {
</del><ins>+        if {$version eq &quot;10.9&quot;} {
</ins><span class="cx"> 
</span><span class="cx">             if {![file exists &quot;/Library/Developer/CommandLineTools/&quot;]} {
</span><span class="cx"> 
</span><span class="lines">@@ -493,7 +493,7 @@
</span><span class="cx"> 
</span><span class="cx">         set mac_version ${macports::macosx_version}
</span><span class="cx"> 
</span><del>-        if {$mac_version == 10.6} {
</del><ins>+        if {$mac_version eq &quot;10.6&quot;} {
</ins><span class="cx"> 
</span><span class="cx">             if {[file exists /Applications/X11.app]} {
</span><span class="cx">                 ui_error &quot;it seems you have Mac OSX 10.6 installed, and are using X11 from \&quot;X11.app\&quot;. This has been known to cause issues. \
</span><span class="lines">@@ -705,7 +705,7 @@
</span><span class="cx"> 
</span><span class="cx">         if {&quot;$port_loc/bin&quot; in $split &amp;&amp; &quot;$port_loc/sbin&quot; in $split } {
</span><span class="cx"> 
</span><del>-            if {[lindex $split 0] != &quot;$port_loc/bin&quot;} {
</del><ins>+            if {[lindex $split 0] ne &quot;$port_loc/bin&quot;} {
</ins><span class="cx">                 ui_warn &quot;$port_loc/bin is not first in your PATH environmental variable.  This may or may not \
</span><span class="cx">                          cause problems in the future.&quot;
</span><span class="cx">             }
</span><span class="lines">@@ -716,7 +716,7 @@
</span><span class="cx">                      Would you like to add $port_loc/bin to your \$PATH variable now? \[Y/N\]&quot;
</span><span class="cx">             set input [gets stdin]
</span><span class="cx"> 
</span><del>-            if {$input == &quot;y&quot; || $input == &quot;Y&quot;} {
</del><ins>+            if {$input eq &quot;y&quot; || $input eq &quot;Y&quot;} {
</ins><span class="cx">                 ui_msg &quot;Attempting to add $port_loc/bin to $profile_path&quot;
</span><span class="cx"> 
</span><span class="cx">                 if {[file exists $profile_path] == 1} {
</span><span class="lines">@@ -731,7 +731,7 @@
</span><span class="cx"> 
</span><span class="cx">                 ui_msg &quot;Added PATH properly. Please execute, 'source $profile_path' in a new terminal window.&quot;
</span><span class="cx"> 
</span><del>-            } elseif {$input == &quot;n&quot; || $input == &quot;N&quot;} {    
</del><ins>+            } elseif {$input eq &quot;n&quot; || $input eq &quot;N&quot;} {    
</ins><span class="cx">                 ui_msg &quot;Not fixing your \$PATH variable.&quot;
</span><span class="cx"> 
</span><span class="cx">             } else {
</span></span></pre></div>
<a id="trunkbasesrcmacports10macportstcl"></a>
<div class="modfile"><h4>Modified: trunk/base/src/macports1.0/macports.tcl (125618 => 125619)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/base/src/macports1.0/macports.tcl        2014-09-22 23:02:06 UTC (rev 125618)
+++ trunk/base/src/macports1.0/macports.tcl        2014-09-22 23:28:41 UTC (rev 125619)
</span><span class="lines">@@ -1878,8 +1878,8 @@
</span><span class="cx">         set revision [lindex $i 2]
</span><span class="cx">         set variants [lindex $i 3]
</span><span class="cx">         array set portinfo [mportinfo $mport]
</span><del>-        if {$name eq $portinfo(name) &amp;&amp; $version == $portinfo(version)
-            &amp;&amp; $revision == $portinfo(revision) &amp;&amp; $variants == $portinfo(canonical_active_variants)} {
</del><ins>+        if {$name eq $portinfo(name) &amp;&amp; $version eq $portinfo(version)
+            &amp;&amp; $revision == $portinfo(revision) &amp;&amp; $variants eq $portinfo(canonical_active_variants)} {
</ins><span class="cx">             return 1
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="lines">@@ -3819,7 +3819,7 @@
</span><span class="cx">         set version [lindex $i 1]
</span><span class="cx">         set revision [lindex $i 2]
</span><span class="cx">         set epoch [lindex $i 5]
</span><del>-        if {$version_installed eq {} || ($epoch &gt; $epoch_installed &amp;&amp; $version != $version_installed) ||
</del><ins>+        if {$version_installed eq {} || ($epoch &gt; $epoch_installed &amp;&amp; $version ne $version_installed) ||
</ins><span class="cx">                 ($epoch &gt;= $epoch_installed &amp;&amp; [vercmp $version $version_installed] &gt; 0)
</span><span class="cx">                 || ($epoch &gt;= $epoch_installed
</span><span class="cx">                     &amp;&amp; [vercmp $version $version_installed] == 0
</span><span class="lines">@@ -3965,14 +3965,14 @@
</span><span class="cx">         &amp;&amp; ![info exists options(ports_upgrade_force)]} {
</span><span class="cx">         if {$portname ne $newname} {
</span><span class="cx">             ui_debug &quot;ignoring versions, installing replacement port&quot;
</span><del>-        } elseif {$epoch_installed &lt; $epoch_in_tree &amp;&amp; $version_installed != $version_in_tree} {
</del><ins>+        } elseif {$epoch_installed &lt; $epoch_in_tree &amp;&amp; $version_installed ne $version_in_tree} {
</ins><span class="cx">             set build_override 1
</span><span class="cx">             ui_debug &quot;epoch override ... upgrading!&quot;
</span><span class="cx">         } elseif {[info exists options(ports_upgrade_enforce-variants)] &amp;&amp; $options(ports_upgrade_enforce-variants) eq {yes}
</span><del>-                  &amp;&amp; [info exists portinfo(canonical_active_variants)] &amp;&amp; $portinfo(canonical_active_variants) != $oldvariant} {
</del><ins>+                  &amp;&amp; [info exists portinfo(canonical_active_variants)] &amp;&amp; $portinfo(canonical_active_variants) ne $oldvariant} {
</ins><span class="cx">             ui_debug &quot;variant override ... upgrading!&quot;
</span><span class="cx">         } elseif {$os_platform_installed ne {} &amp;&amp; $os_major_installed ne {} &amp;&amp; $os_platform_installed != 0
</span><del>-                  &amp;&amp; ([_mportkey $mport {{os.platform}}] != $os_platform_installed
</del><ins>+                  &amp;&amp; ([_mportkey $mport {{os.platform}}] ne $os_platform_installed
</ins><span class="cx">                   || [_mportkey $mport {{os.major}}] != $os_major_installed)} {
</span><span class="cx">             ui_debug &quot;platform mismatch ... upgrading!&quot;
</span><span class="cx">             set build_override 1
</span><span class="lines">@@ -3984,7 +3984,7 @@
</span><span class="cx">             # in the first run of rev-upgrade, only activate possibly already existing files and check for missing dependencies
</span><span class="cx">             # do nothing, just prevent will_install being set to no below
</span><span class="cx">         } else {
</span><del>-            if {[info exists portinfo(canonical_active_variants)] &amp;&amp; $portinfo(canonical_active_variants) != $oldvariant} {
</del><ins>+            if {[info exists portinfo(canonical_active_variants)] &amp;&amp; $portinfo(canonical_active_variants) ne $oldvariant} {
</ins><span class="cx">                 if {[llength $variationslist] &gt; 0} {
</span><span class="cx">                     ui_warn &quot;Skipping upgrade since $portname ${version_installed}_$revision_installed &gt;= $portname ${version_in_tree}_${revision_in_tree}, even though installed variants \&quot;$oldvariant\&quot; do not match \&quot;$portinfo(canonical_active_variants)\&quot;. Use 'upgrade --enforce-variants' to switch to the requested variants.&quot;
</span><span class="cx">                 } else {
</span><span class="lines">@@ -4113,8 +4113,8 @@
</span><span class="cx">         if {!$force_cur} {
</span><span class="cx">             unset options(ports_force)
</span><span class="cx">         }
</span><del>-        if {$anyactive &amp;&amp; $version_in_tree == $version_active &amp;&amp; $revision_in_tree == $revision_active
-            &amp;&amp; $portinfo(canonical_active_variants) == $variant_active &amp;&amp; $portname eq $newname} {
</del><ins>+        if {$anyactive &amp;&amp; $version_in_tree eq $version_active &amp;&amp; $revision_in_tree == $revision_active
+            &amp;&amp; $portinfo(canonical_active_variants) eq $variant_active &amp;&amp; $portname eq $newname} {
</ins><span class="cx">             set anyactive no
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="lines">@@ -4194,7 +4194,7 @@
</span><span class="cx">             set version [lindex $i 1]
</span><span class="cx">             set revision [lindex $i 2]
</span><span class="cx">             set variant [lindex $i 3]
</span><del>-            if {$version == $version_in_tree &amp;&amp; $revision == $revision_in_tree &amp;&amp; $variant == $portinfo(canonical_active_variants) &amp;&amp; $portname eq $newname} {
</del><ins>+            if {$version eq $version_in_tree &amp;&amp; $revision == $revision_in_tree &amp;&amp; $variant eq $portinfo(canonical_active_variants) &amp;&amp; $portname eq $newname} {
</ins><span class="cx">                 continue
</span><span class="cx">             }
</span><span class="cx">             set epoch [lindex $i 5]
</span></span></pre></div>
<a id="trunkbasesrcmacports10macports_dlisttcl"></a>
<div class="modfile"><h4>Modified: trunk/base/src/macports1.0/macports_dlist.tcl (125618 => 125619)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/base/src/macports1.0/macports_dlist.tcl        2014-09-22 23:02:06 UTC (rev 125618)
+++ trunk/base/src/macports1.0/macports_dlist.tcl        2014-09-22 23:28:41 UTC (rev 125619)
</span><span class="lines">@@ -307,7 +307,7 @@
</span><span class="cx">         while {1} {
</span><span class="cx">                 set ditem [$selector $dlist statusdict]
</span><span class="cx"> 
</span><del>-                if {$ditem == {}} {
</del><ins>+                if {$ditem eq {}} {
</ins><span class="cx">                         if {[llength $dlist] &gt; 0} {
</span><span class="cx">                                 ui_debug &quot;dlist_eval: all entries in dependency list have unsatisfied dependencies; can't process&quot;
</span><span class="cx">                         }
</span><span class="lines">@@ -320,7 +320,7 @@
</span><span class="cx">                                 return $dlist
</span><span class="cx">                         }
</span><span class="cx">                         # No news is good news at this point.
</span><del>-                        if {$result == {}} { set result 0 }
</del><ins>+                        if {$result eq {}} { set result 0 }
</ins><span class="cx">                         
</span><span class="cx">                         foreach token [ditem_key $ditem provides] {
</span><span class="cx">                                 set statusdict($token) [expr {$result == 0}]
</span><span class="lines">@@ -387,7 +387,7 @@
</span><span class="cx"> proc ditem_append {ditem key args} {
</span><span class="cx">         variable $ditem
</span><span class="cx">         set x [lindex [array get $ditem $key] 1]
</span><del>-        if {$x != {}} {
</del><ins>+        if {$x ne {}} {
</ins><span class="cx">                 lappend x {*}$args
</span><span class="cx">         } else {
</span><span class="cx">                 set x $args
</span><span class="lines">@@ -399,7 +399,7 @@
</span><span class="cx"> proc ditem_append_unique {ditem key args} {
</span><span class="cx">         variable $ditem
</span><span class="cx">         set x [lindex [array get $ditem $key] 1]
</span><del>-        if {$x != {}} {
</del><ins>+        if {$x ne {}} {
</ins><span class="cx">                 lappend x {*}$args
</span><span class="cx">                 set x [lsort -unique $x]
</span><span class="cx">         } else {
</span></span></pre></div>
<a id="trunkbasesrcmacports10testsmacportstest"></a>
<div class="modfile"><h4>Modified: trunk/base/src/macports1.0/tests/macports.test (125618 => 125619)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/base/src/macports1.0/tests/macports.test        2014-09-22 23:02:06 UTC (rev 125618)
+++ trunk/base/src/macports1.0/tests/macports.test        2014-09-22 23:28:41 UTC (rev 125619)
</span><span class="lines">@@ -50,7 +50,7 @@
</span><span class="cx">     if {[catch {mportclose $mport}] != 0} {
</span><span class="cx">        return &quot;FAIL: cannot run mportclose&quot;
</span><span class="cx">     }
</span><del>-    if {[ditem_key $mport workername] != &quot;&quot;} {
</del><ins>+    if {[ditem_key $mport workername] ne &quot;&quot;} {
</ins><span class="cx">        return &quot;FAIL: port not closed&quot;
</span><span class="cx">     }
</span><span class="cx">     return &quot;Mport close successful.&quot;
</span><span class="lines">@@ -112,7 +112,7 @@
</span><span class="cx">     if {[macports::init_logging $mport] != 0} {
</span><span class="cx">        return &quot;FAIL: incorrect channels&quot;
</span><span class="cx">     }
</span><del>-    if {$macports::channels(any) != &quot;stdout debuglog&quot;} {
</del><ins>+    if {$macports::channels(any) ne &quot;stdout debuglog&quot;} {
</ins><span class="cx">        return &quot;FAIL: incorrect channels(any)&quot;
</span><span class="cx">     }
</span><span class="cx">     if {(![info exists ui_options(ports_debug)] &amp;&amp; $macports::channels(debug) ne &quot;debuglog&quot;) || 
</span><span class="lines">@@ -218,7 +218,7 @@
</span><span class="cx">     }
</span><span class="cx"> } -body {
</span><span class="cx">     macports::pop_log
</span><del>-    if {$::debuglog != $::logstack} {
</del><ins>+    if {$::debuglog ne $::logstack} {
</ins><span class="cx">         return &quot;FAIL: cannot pop log&quot;
</span><span class="cx">     }
</span><span class="cx">     return &quot;Pop log successful.&quot;
</span><span class="lines">@@ -236,7 +236,7 @@
</span><span class="cx">     Set phase unit test.
</span><span class="cx"> } -body {
</span><span class="cx">     set res [set_phase test]
</span><del>-    if {$macports::current_phase != &quot;test&quot;} {
</del><ins>+    if {$macports::current_phase ne &quot;test&quot;} {
</ins><span class="cx">         return &quot;FAIL: phase not set&quot;
</span><span class="cx">     }
</span><span class="cx">     return &quot;Set phase successful.&quot;
</span><span class="lines">@@ -258,7 +258,7 @@
</span><span class="cx">     close $fd2
</span><span class="cx">     set fd2 [open $pwd/message r]
</span><span class="cx">     set line [read $fd2]
</span><del>-    if {$line != &quot;prefixargs\n&quot;} {
</del><ins>+    if {$line ne &quot;prefixargs\n&quot;} {
</ins><span class="cx">         return &quot;FAIL: wrong message&quot;
</span><span class="cx">     }
</span><span class="cx">     close $fd2
</span><span class="lines">@@ -270,7 +270,7 @@
</span><span class="cx">     close $fd2
</span><span class="cx">     set fd2 [open $pwd/log r]
</span><span class="cx">     set line [read $fd2]
</span><del>-    if {$line != &quot;prefixarg&quot;} {
</del><ins>+    if {$line ne &quot;prefixarg&quot;} {
</ins><span class="cx">         return &quot;FAIL: wrong message&quot;
</span><span class="cx">     }
</span><span class="cx">     close $fd2
</span><span class="lines">@@ -354,10 +354,10 @@
</span><span class="cx"> test findBinary {
</span><span class="cx">     Find binary unit test.
</span><span class="cx"> } -body {
</span><del>-    if {[macports::findBinary pwd ls] != &quot;/bin/pwd&quot;} {
</del><ins>+    if {[macports::findBinary pwd ls] ne &quot;/bin/pwd&quot;} {
</ins><span class="cx">        return &quot;FAIL: wrong binary&quot;
</span><span class="cx">     }
</span><del>-    if {[macports::findBinary pwd /bin/ls] != &quot;/bin/ls&quot;} {
</del><ins>+    if {[macports::findBinary pwd /bin/ls] ne &quot;/bin/ls&quot;} {
</ins><span class="cx">        return &quot;FAIL: wrong binary&quot;
</span><span class="cx">     }
</span><span class="cx">     return &quot;Find binary successful.&quot;
</span><span class="lines">@@ -370,7 +370,7 @@
</span><span class="cx">     if {[catch {macports::binaryInPath zz}] != 1} {
</span><span class="cx">        return &quot;FAIL: invalid binary found&quot;
</span><span class="cx">     }
</span><del>-    if {[macports::binaryInPath ls] != &quot;/bin/ls&quot;} {
</del><ins>+    if {[macports::binaryInPath ls] ne &quot;/bin/ls&quot;} {
</ins><span class="cx">        return &quot;FAIL: wrong binary found&quot;
</span><span class="cx">     }
</span><span class="cx">     return &quot;Binary in path successful.&quot;
</span><span class="lines">@@ -381,7 +381,7 @@
</span><span class="cx">     Get option unit test.
</span><span class="cx"> } -body {
</span><span class="cx">     set macports::test macports
</span><del>-    if {[macports::getoption test] != &quot;macports&quot;} {
</del><ins>+    if {[macports::getoption test] ne &quot;macports&quot;} {
</ins><span class="cx">         return &quot;FAIL: cannot get option&quot;
</span><span class="cx">     }
</span><span class="cx">     return &quot;Get option successful.&quot;
</span><span class="lines">@@ -395,7 +395,7 @@
</span><span class="cx"> } -setup {
</span><span class="cx">     unset macports::xcodeversion
</span><span class="cx"> } -body {
</span><del>-    if {[macports::setxcodeinfo a b c] != &quot;&quot;} {
</del><ins>+    if {[macports::setxcodeinfo a b c] ne &quot;&quot;} {
</ins><span class="cx">        return &quot;FAIL: xcode binary not found&quot;
</span><span class="cx">     }
</span><span class="cx">     if {![info exists macports::xcodeversion]} {
</span><span class="lines">@@ -412,7 +412,7 @@
</span><span class="cx"> } -body {
</span><span class="cx">     unset macports::developer_dir
</span><span class="cx"> 
</span><del>-    if {[macports::set_developer_dir a b c] != &quot;&quot;} {
</del><ins>+    if {[macports::set_developer_dir a b c] ne &quot;&quot;} {
</ins><span class="cx">        return &quot;FAIL: cannot set dev dir&quot;
</span><span class="cx">     }
</span><span class="cx">     if {![info exists macports::developer_dir]} {
</span><span class="lines">@@ -500,7 +500,7 @@
</span><span class="cx">     close [open $macports::portdbpath/pingtimes w+]
</span><span class="cx"> 
</span><span class="cx"> } -body {
</span><del>-    if {[mportshutdown] != &quot;&quot;} {
</del><ins>+    if {[mportshutdown] ne &quot;&quot;} {
</ins><span class="cx">        return &quot;FAIL: errors occured&quot;
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -508,7 +508,7 @@
</span><span class="cx">     append res &quot;host1 \{test &quot; $time &quot;\}&quot;
</span><span class="cx">     set fd [open $macports::portdbpath/pingtimes r]
</span><span class="cx"> 
</span><del>-    if {[gets $fd] != $res} {
</del><ins>+    if {[gets $fd] ne $res} {
</ins><span class="cx">        return &quot;FAIL: wrong value saved&quot;
</span><span class="cx">     }
</span><span class="cx">     close $fd
</span><span class="lines">@@ -526,7 +526,7 @@
</span><span class="cx"> } -body {
</span><span class="cx">     set target $pwd/target
</span><span class="cx"> 
</span><del>-    if {[macports::copy_xcode_plist $target] != &quot;&quot;} {
</del><ins>+    if {[macports::copy_xcode_plist $target] ne &quot;&quot;} {
</ins><span class="cx">        return &quot;FAIL: cannot copy xcode plist&quot;
</span><span class="cx">     }
</span><span class="cx">     if {![file exists $target/Library/Preferences/com.apple.dt.Xcode.plist]} {
</span><span class="lines">@@ -555,10 +555,10 @@
</span><span class="cx"> test get_tar_flags {
</span><span class="cx">     Get tar flags unit test.
</span><span class="cx"> } -body {
</span><del>-    if {[macports::get_tar_flags .tbz2] != &quot;-j&quot;} {
</del><ins>+    if {[macports::get_tar_flags .tbz2] ne &quot;-j&quot;} {
</ins><span class="cx">         return &quot;FAIL: wrong flaga (-j)&quot;
</span><span class="cx">     }
</span><del>-    if {[macports::get_tar_flags .tgz] != &quot;-z&quot;} {
</del><ins>+    if {[macports::get_tar_flags .tgz] ne &quot;-z&quot;} {
</ins><span class="cx">         return &quot;FAIL: wrong flaga (-z)&quot;
</span><span class="cx">     }
</span><span class="cx">     return &quot;Get tar flags successful.&quot;
</span><span class="lines">@@ -570,7 +570,7 @@
</span><span class="cx"> } -body {
</span><span class="cx">     set url http://packages.macports.org/db_select/db_select-0.1_2.darwin_13.noarch.tbz2
</span><span class="cx">     set res [macports::fetch_port $url]
</span><del>-    if {$res != &quot;${pwd}/portdbpath/portdirs/db_select-0.1_2&quot;} {
</del><ins>+    if {$res ne &quot;${pwd}/portdbpath/portdirs/db_select-0.1_2&quot;} {
</ins><span class="cx">         return &quot;FAIL: cannot fetch port&quot;
</span><span class="cx">     }
</span><span class="cx">     return &quot;Fetch port successful.&quot;
</span><span class="lines">@@ -582,7 +582,7 @@
</span><span class="cx"> test getprotocol {
</span><span class="cx">     Get protocol unit test.
</span><span class="cx"> } -body {
</span><del>-    if {[macports::getprotocol http://www.macports.org] != &quot;http&quot;} {
</del><ins>+    if {[macports::getprotocol http://www.macports.org] ne &quot;http&quot;} {
</ins><span class="cx">        return &quot;FAIL: wrong protocol&quot;
</span><span class="cx">     }
</span><span class="cx">     return &quot;Get protocol successful.&quot;
</span><span class="lines">@@ -596,12 +596,12 @@
</span><span class="cx"> } -body {
</span><span class="cx">     set url http://packages.macports.org/db_select/db_select-0.1_2.darwin_13.noarch.tbz2
</span><span class="cx">     set res [macports::getportdir $url]
</span><del>-    if {$res != &quot;${pwd}/portdbpath/portdirs/db_select-0.1_2&quot;} {
</del><ins>+    if {$res ne &quot;${pwd}/portdbpath/portdirs/db_select-0.1_2&quot;} {
</ins><span class="cx">         return &quot;FAIL: invalid port directory&quot;
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     set url file://${pwd}/local_file
</span><del>-    if {[macports::getportdir $url] != &quot;${pwd}/local_file&quot;} {
</del><ins>+    if {[macports::getportdir $url] ne &quot;${pwd}/local_file&quot;} {
</ins><span class="cx">         return &quot;FAIL: invalid local port directory&quot;
</span><span class="cx">     }
</span><span class="cx">     return &quot;Get port dir successful.&quot;
</span><span class="lines">@@ -619,13 +619,13 @@
</span><span class="cx">     set default_path $pwd/portdbpath/sources/rsync.macports.org/release/tarballs/ports/_resources
</span><span class="cx">     set fallback_path $pwd/portdbpath/sources/packages.macports.org/db_select/db_select-0.1_2.darwin_13.noarch.tbz2/_resources
</span><span class="cx"> 
</span><del>-    if {[macports::getportresourcepath $url &quot;&quot; yes] != $default_path} {
</del><ins>+    if {[macports::getportresourcepath $url &quot;&quot; yes] ne $default_path} {
</ins><span class="cx">        return &quot;FAIL: wrong resource path&quot;
</span><span class="cx">     }
</span><del>-    if {[macports::getportresourcepath $url &quot;&quot; no] != $fallback_path} {
</del><ins>+    if {[macports::getportresourcepath $url &quot;&quot; no] ne $fallback_path} {
</ins><span class="cx">        return &quot;FAIL: wrong fallback path&quot;
</span><span class="cx">     }
</span><del>-    if {[macports::getportresourcepath $url &quot;test&quot; no] != &quot;${fallback_path}/test&quot;} {
</del><ins>+    if {[macports::getportresourcepath $url &quot;test&quot; no] ne &quot;${fallback_path}/test&quot;} {
</ins><span class="cx">        return &quot;FAIL: wrong fallback path with subdir&quot;
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -638,14 +638,14 @@
</span><span class="cx"> } -body {
</span><span class="cx">     set path test/path
</span><span class="cx">     set macports::sources_default file://$pwd
</span><del>-    if {[macports::getdefaultportresourcepath $path] != &quot;${pwd}/_resources/${path}&quot;} {
</del><ins>+    if {[macports::getdefaultportresourcepath $path] ne &quot;${pwd}/_resources/${path}&quot;} {
</ins><span class="cx">        return &quot;FAIL: wrong file res path&quot;
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     set macports::sources_default http://$pwd
</span><span class="cx">     set default_source_url [lindex ${macports::sources_default} 0]
</span><span class="cx">     set right_path [macports::getsourcepath $default_source_url]/_resources/test/path
</span><del>-    if {[macports::getdefaultportresourcepath $path] != $right_path} {
</del><ins>+    if {[macports::getdefaultportresourcepath $path] ne $right_path} {
</ins><span class="cx">        return &quot;FAIL: wrong http res path&quot;
</span><span class="cx">     }
</span><span class="cx">     return &quot;Default res path successful.&quot;
</span><span class="lines">@@ -678,7 +678,7 @@
</span><span class="cx">     set res &quot;&quot;
</span><span class="cx"> } -body {
</span><span class="cx">     mporttraverse test_proc $pwd/porttree
</span><del>-    if {$res != &quot;1.01.0&quot;} {
</del><ins>+    if {$res ne &quot;1.01.0&quot;} {
</ins><span class="cx">        return &quot;FAIL: porttree not traversed&quot;
</span><span class="cx">     }
</span><span class="cx">     return &quot;Mport traverse successful.&quot;
</span><span class="lines">@@ -825,16 +825,16 @@
</span><span class="cx">     puts $fd &quot;a\nb&quot;
</span><span class="cx">     close $fd
</span><span class="cx"> } -body {
</span><del>-    if {[mportselect list group] != {file1 file2}} {
</del><ins>+    if {[mportselect list group] ne {file1 file2}} {
</ins><span class="cx">        return &quot;FAIL: files not listed&quot;
</span><span class="cx">     }
</span><del>-    if {[mportselect set group file1] != &quot;&quot;} {
</del><ins>+    if {[mportselect set group file1] ne &quot;&quot;} {
</ins><span class="cx">        reutrn &quot;FAIL: cannot set links&quot;
</span><span class="cx">     }
</span><span class="cx">     if {![file exists $macports::prefix/a]} {
</span><span class="cx">        return &quot;FAIL: link not created&quot;
</span><span class="cx">     }
</span><del>-    if {[mportselect show group] != &quot;file1&quot;} {
</del><ins>+    if {[mportselect show group] ne &quot;file1&quot;} {
</ins><span class="cx">        return &quot;FAIL: file not selected&quot;
</span><span class="cx">     }
</span><span class="cx">     return &quot;Mport select successful.&quot;
</span><span class="lines">@@ -849,11 +849,11 @@
</span><span class="cx"> } -body {
</span><span class="cx">     global env
</span><span class="cx">     set env(TMPDIR) temporal
</span><del>-    if {[macports::gettmpdir] != &quot;temporal&quot;} {
</del><ins>+    if {[macports::gettmpdir] ne &quot;temporal&quot;} {
</ins><span class="cx">        return &quot;FAIL: set temp dir not detected&quot;
</span><span class="cx">     }
</span><span class="cx">     unset env(TMPDIR)
</span><del>-    if {[macports::gettmpdir] != &quot;/tmp&quot;} {
</del><ins>+    if {[macports::gettmpdir] ne &quot;/tmp&quot;} {
</ins><span class="cx">        return &quot;FAIL: default value not set&quot;
</span><span class="cx">     }
</span><span class="cx">     return &quot;Get tmp dir successful.&quot;
</span><span class="lines">@@ -914,11 +914,11 @@
</span><span class="cx">     Revupgrade handle special paths unit test.
</span><span class="cx"> } -body {
</span><span class="cx">     set res [macports::revupgrade_handle_special_paths fname test_path]
</span><del>-    if {$res != &quot;test_path&quot;} {
</del><ins>+    if {$res ne &quot;test_path&quot;} {
</ins><span class="cx">        return &quot;FAIL: wrong path&quot;
</span><span class="cx">     }
</span><span class="cx">     set res [macports::revupgrade_handle_special_paths fname @loader_path/test_load]
</span><del>-    if {$res != &quot;./test_load&quot;} {
</del><ins>+    if {$res ne &quot;./test_load&quot;} {
</ins><span class="cx">        return &quot;FAIL: wrong load path&quot;
</span><span class="cx">     }
</span><span class="cx">     return &quot;Revupgrade handle special path successful.&quot;
</span><span class="lines">@@ -937,7 +937,7 @@
</span><span class="cx">     set macports::host_preferred(macports_pref) [list pref $time]
</span><span class="cx"> 
</span><span class="cx"> } -body {
</span><del>-    if {[macports::get_pingtime macports.org] != &quot;MacPorts&quot;} {
</del><ins>+    if {[macports::get_pingtime macports.org] ne &quot;MacPorts&quot;} {
</ins><span class="cx">        return &quot;FAIL: wrong ping time&quot;
</span><span class="cx">     }
</span><span class="cx">     if {[macports::get_pingtime macports_blacklist] != -1} {
</span><span class="lines">@@ -976,15 +976,15 @@
</span><span class="cx"> } -body {
</span><span class="cx">     set res [macports::get_archive_sites_conf_values]
</span><span class="cx">     puts $res
</span><del>-    if {[lindex [split $res &quot; &quot;] 1] != &quot;macports.org:nosubdir&quot;} {
</del><ins>+    if {[lindex [split $res &quot; &quot;] 1] ne &quot;macports.org:nosubdir&quot;} {
</ins><span class="cx">        return &quot;FAIL: name not set&quot;
</span><span class="cx">     }
</span><del>-    if {[lindex [split $res &quot; &quot;] 3] != &quot;tgz&quot;} {
</del><ins>+    if {[lindex [split $res &quot; &quot;] 3] ne &quot;tgz&quot;} {
</ins><span class="cx">        return &quot;FAIL: wrong type set&quot;
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     set macports::archive_sites_conf_values {a b c}
</span><del>-    if {[macports::get_archive_sites_conf_values] != {a b c}} {
</del><ins>+    if {[macports::get_archive_sites_conf_values] ne {a b c}} {
</ins><span class="cx">        return &quot;FAIL: wrong  result for bad conf file&quot;
</span><span class="cx">     }
</span><span class="cx">     return &quot;Get archive sites conf values successful.&quot;
</span></span></pre></div>
<a id="trunkbasesrcmacports10testsmacports_dlisttest"></a>
<div class="modfile"><h4>Modified: trunk/base/src/macports1.0/tests/macports_dlist.test (125618 => 125619)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/base/src/macports1.0/tests/macports_dlist.test        2014-09-22 23:02:06 UTC (rev 125618)
+++ trunk/base/src/macports1.0/tests/macports_dlist.test        2014-09-22 23:28:41 UTC (rev 125619)
</span><span class="lines">@@ -26,10 +26,10 @@
</span><span class="cx">     set crit2 { provides fondu2 }
</span><span class="cx"> 
</span><span class="cx"> } -body {
</span><del>-    if {[dlist_match_multi $mport $crit] != $mport} {
</del><ins>+    if {[dlist_match_multi $mport $crit] ne $mport} {
</ins><span class="cx">        return &quot;FAIL: correct dlist not matched&quot;
</span><span class="cx">     }
</span><del>-    if {[dlist_match_multi $mport $crit2] != &quot;&quot;} {
</del><ins>+    if {[dlist_match_multi $mport $crit2] ne &quot;&quot;} {
</ins><span class="cx">        return &quot;FAIL: incorrect dlist matched&quot;
</span><span class="cx">     }
</span><span class="cx">     return &quot;dlist match successful.&quot;
</span><span class="lines">@@ -43,10 +43,10 @@
</span><span class="cx"> } -setup {
</span><span class="cx">     set mport [mportopen file://.]
</span><span class="cx"> } -body {
</span><del>-    if {[dlist_search $mport provides gcc_select] != $mport} {
</del><ins>+    if {[dlist_search $mport provides gcc_select] ne $mport} {
</ins><span class="cx">        return &quot;FAIL: matching item not found&quot;
</span><span class="cx">     }
</span><del>-    if {[dlist_search $mport provides fondu2] != &quot;&quot;} {
</del><ins>+    if {[dlist_search $mport provides fondu2] ne &quot;&quot;} {
</ins><span class="cx">        return &quot;FAIL: wrong item detected&quot;
</span><span class="cx">     }
</span><span class="cx">     return &quot;dlist successful.&quot;
</span><span class="lines">@@ -62,10 +62,10 @@
</span><span class="cx">     set dlist [list]
</span><span class="cx">     lappend dlist $mport
</span><span class="cx"> } -body {
</span><del>-    if {[dlist_delete dlist $mport] != &quot;&quot;} {
</del><ins>+    if {[dlist_delete dlist $mport] ne &quot;&quot;} {
</ins><span class="cx">        return &quot;FAIL: cannot run dlist_delete&quot;
</span><span class="cx">     }
</span><del>-    if {$dlist != &quot;&quot;} {
</del><ins>+    if {$dlist ne &quot;&quot;} {
</ins><span class="cx">        return &quot;FAIL: port not removed from list&quot;
</span><span class="cx">     }
</span><span class="cx">     return &quot;Dlist delete successful.&quot;
</span><span class="lines">@@ -126,7 +126,7 @@
</span><span class="cx">     set mport [mportopen file://.]
</span><span class="cx">     set result {fondu2}
</span><span class="cx"> } -body {
</span><del>-    if {[dlist_append_dependents $mport provides $result] != {fondu2 provides}} {
</del><ins>+    if {[dlist_append_dependents $mport provides $result] ne {fondu2 provides}} {
</ins><span class="cx">        return &quot;FAIL: wrong depends&quot;
</span><span class="cx">     }
</span><span class="cx">     return &quot;Append depends successful.&quot;
</span><span class="lines">@@ -141,7 +141,7 @@
</span><span class="cx">     set mport [mportopen file://.]
</span><span class="cx">     set dict {gcc_select}
</span><span class="cx"> } -body {
</span><del>-    if {[dlist_get_next $mport $dict] != $mport} {
</del><ins>+    if {[dlist_get_next $mport $dict] ne $mport} {
</ins><span class="cx">        return &quot;FAIL: wrong dlist&quot;
</span><span class="cx">     }
</span><span class="cx">     return &quot;dlist get next successful.&quot;
</span><span class="lines">@@ -163,7 +163,7 @@
</span><span class="cx">     }
</span><span class="cx">     proc handler {arg} {}
</span><span class="cx"> } -body {
</span><del>-    if {[dlist_eval $mport cond handler] != &quot;&quot;} {
</del><ins>+    if {[dlist_eval $mport cond handler] ne &quot;&quot;} {
</ins><span class="cx">        return &quot;FAIL: wrong value returned&quot;
</span><span class="cx">     }
</span><span class="cx">     return &quot;dlist eval successful.&quot;
</span><span class="lines">@@ -204,7 +204,7 @@
</span><span class="cx">     set res [macports_dlist::ditem_create]
</span><span class="cx">     macports_dlist::ditem_key $res macports test
</span><span class="cx"> } -body {
</span><del>-    if {[array get macports_dlist::$res macports] != &quot;macports test&quot;} {
</del><ins>+    if {[array get macports_dlist::$res macports] ne &quot;macports test&quot;} {
</ins><span class="cx">         return &quot;FAIL ditem key not set&quot;
</span><span class="cx">     }
</span><span class="cx">     return &quot;Ditem key successful.&quot;
</span><span class="lines">@@ -220,7 +220,7 @@
</span><span class="cx">     macports_dlist::ditem_key $res macports test
</span><span class="cx">     macports_dlist::ditem_append $res macports test2
</span><span class="cx"> } -body {
</span><del>-    if {[array get macports_dlist::$res macports] != &quot;macports {test test2}&quot;} {
</del><ins>+    if {[array get macports_dlist::$res macports] ne &quot;macports {test test2}&quot;} {
</ins><span class="cx">         return &quot;FAIL: ditem key not appended&quot;
</span><span class="cx">     }
</span><span class="cx">     return &quot;Ditem key append successful.&quot;
</span><span class="lines">@@ -236,7 +236,7 @@
</span><span class="cx">     macports_dlist::ditem_key $res macports test
</span><span class="cx">     macports_dlist::ditem_append_unique $res macports test
</span><span class="cx"> } -body {
</span><del>-    if {[array get macports_dlist::$res macports] != &quot;macports test&quot;} {
</del><ins>+    if {[array get macports_dlist::$res macports] ne &quot;macports test&quot;} {
</ins><span class="cx">         return &quot;FAIL: ditem key not unique&quot;
</span><span class="cx">     }
</span><span class="cx">     return &quot;Ditem append unique successful.&quot;
</span></span></pre></div>
<a id="trunkbasesrcmacports10testsmacports_utiltest"></a>
<div class="modfile"><h4>Modified: trunk/base/src/macports1.0/tests/macports_util.test (125618 => 125619)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/base/src/macports1.0/tests/macports_util.test        2014-09-22 23:02:06 UTC (rev 125618)
+++ trunk/base/src/macports1.0/tests/macports_util.test        2014-09-22 23:28:41 UTC (rev 125619)
</span><span class="lines">@@ -23,7 +23,7 @@
</span><span class="cx">     if {[test_proc 1] != 7} {
</span><span class="cx">        return &quot;FAIL: no wrap around method&quot;
</span><span class="cx">     }
</span><del>-    if {[test_proc arg] != &quot;arg&quot;} {
</del><ins>+    if {[test_proc arg] ne &quot;arg&quot;} {
</ins><span class="cx">        return &quot;FAIL: no wrap around method&quot;
</span><span class="cx">     }
</span><span class="cx">     return &quot;Method wrap successful.&quot;
</span><span class="lines">@@ -46,7 +46,7 @@
</span><span class="cx">     if {[ldindex list] != {0 2 3}} {
</span><span class="cx">        return &quot;FAIL: not all elements poped&quot;
</span><span class="cx">     }
</span><del>-    if {$list != &quot;&quot;} {
</del><ins>+    if {$list ne &quot;&quot;} {
</ins><span class="cx">        return &quot;FAIL: list not emptied&quot;
</span><span class="cx">     }
</span><span class="cx">     return &quot;ldindex successful.&quot;
</span><span class="lines">@@ -96,7 +96,7 @@
</span><span class="cx">     if {$list != {1 2}} {
</span><span class="cx">        return &quot;FAIL: wrong list remaining&quot;
</span><span class="cx">     }
</span><del>-    if {[lshift list1] != &quot;&quot;} {
</del><ins>+    if {[lshift list1] ne &quot;&quot;} {
</ins><span class="cx">        return &quot;FAIL: empty list not detected&quot;
</span><span class="cx">     }
</span><span class="cx">     return &quot;lshift successful.&quot;
</span></span></pre></div>
<a id="trunkbasesrcmacports10teststesttcl"></a>
<div class="modfile"><h4>Modified: trunk/base/src/macports1.0/tests/test.tcl (125618 => 125619)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/base/src/macports1.0/tests/test.tcl        2014-09-22 23:02:06 UTC (rev 125618)
+++ trunk/base/src/macports1.0/tests/test.tcl        2014-09-22 23:28:41 UTC (rev 125619)
</span><span class="lines">@@ -83,7 +83,7 @@
</span><span class="cx">         set result [exec -ignorestderr $tcl $test {*}$arguments]
</span><span class="cx">         set lastline [lindex [split $result &quot;\n&quot;] end]
</span><span class="cx"> 
</span><del>-        if {[lrange [split $lastline &quot;\t&quot;] 1 1] != &quot;Total&quot;} {
</del><ins>+        if {[lrange [split $lastline &quot;\t&quot;] 1 1] ne &quot;Total&quot;} {
</ins><span class="cx">             set lastline [lindex [split $result &quot;\n&quot;] end-2]
</span><span class="cx">             set errmsg [lindex [split $result &quot;\n&quot;] end]
</span><span class="cx">         }
</span></span></pre>
</div>
</div>

</body>
</html>