<pre style='margin:0'>
Umesh Singla (umeshksingla) pushed a commit to branch gsoc17-migrate
in repository macports-base.

</pre>
<p><a href="https://github.com/macports/macports-base/commit/7eda6cf961bc10af9d755cd2c73843d4cfe50ee3">https://github.com/macports/macports-base/commit/7eda6cf961bc10af9d755cd2c73843d4cfe50ee3</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 7eda6cf961bc10af9d755cd2c73843d4cfe50ee3
</span>Author: Clemens Lang <cal@macports.org>
AuthorDate: Sun Mar 11 18:45:54 2018 +0100

<span style='display:block; white-space:pre;color:#404040;'>    macports1.0: Fix typos and logic errors in migrate
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    'port migrate' cannot call portindex when running selfupdate, because
</span><span style='display:block; white-space:pre;color:#404040;'>    portindex will refuse to work due to the platform mismatch.
</span>---
 src/macports1.0/migrate.tcl | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/macports1.0/migrate.tcl b/src/macports1.0/migrate.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index 54fc0db..cb53ac9 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/macports1.0/migrate.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/macports1.0/migrate.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -77,7 +77,7 @@ namespace eval migrate {
</span>         # If port migrate was not called with --continue, the user probably did
         # that manually and we do not have confirmation to run migration yet;
         # do that now.
<span style='display:block; white-space:pre;background:#ffe0e0;'>-        set continuation [expr {[info exists options(ports_migration_continue)] && $options(ports_migration_continue)}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        set continuation [expr {[info exists options(ports_migrate_continue)] && $options(ports_migrate_continue)}]
</span>         if {!$continuation && [info exists macports::ui_options(questions_yesno)]} {
             set msg "Migration will reinstall all installed ports."
             set retvalue [$macports::ui_options(questions_yesno) $msg "MigrationContinuationPrompt" "" {y} 0 "Would you like to continue?"]
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -159,8 +159,10 @@ namespace eval migrate {
</span>         array set optionslist {}
         # Force rebuild, but do not allow downgrade
         set optionslist(ports_selfupdate_migrate) 1
<span style='display:block; white-space:pre;background:#e0ffe0;'>+        # Avoid portindex, which would trigger 'portindex', which does not work
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        set optionslist(ports_selfupdate_nosync) 1
</span> 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-        uplevel [list selfupdate::main [array get optionslist] base_updated]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        selfupdate::main [array get optionslist] base_updated
</span>         return $base_updated
     }
 }
</pre><pre style='margin:0'>

</pre>