<pre style='margin:0'>
Joshua Root (jmroot) pushed a commit to branch master
in repository macports-base.
</pre>
<p><a href="https://github.com/macports/macports-base/commit/418f2868e6bd1b1c58d3bf436c62ee2815531ec6">https://github.com/macports/macports-base/commit/418f2868e6bd1b1c58d3bf436c62ee2815531ec6</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 418f2868e migrate: call snapshot::create directly
</span>418f2868e is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 418f2868e6bd1b1c58d3bf436c62ee2815531ec6
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Mon Jul 22 11:42:23 2024 +1000
<span style='display:block; white-space:pre;color:#404040;'> migrate: call snapshot::create directly
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Needs the actual snapshot handle, not just the status code as returned
</span><span style='display:block; white-space:pre;color:#404040;'> by snapshot::main.
</span>---
src/macports1.0/migrate.tcl | 3 +--
1 file changed, 1 insertion(+), 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 4c1b9a7b2..66b9edc91 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;'>@@ -100,8 +100,7 @@ namespace eval migrate {
</span>
# create a snapshot
ui_msg "Taking a snapshot of the current state..."
<span style='display:block; white-space:pre;background:#ffe0e0;'>- set snapshot [snapshot::main $opts]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {$snapshot == 0} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[catch {snapshot::create $opts} snapshot] || $snapshot == 0} {
</span> return -1
}
set id [$snapshot id]
</pre><pre style='margin:0'>
</pre>