<pre style='margin:0'>
Joshua Root (jmroot) pushed a commit to branch master
in repository mpbb.

</pre>
<p><a href="https://github.com/macports/mpbb/commit/421907e67eb001aeb13730666d788bee0d9557a6">https://github.com/macports/mpbb/commit/421907e67eb001aeb13730666d788bee0d9557a6</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 421907e  Prefer uninstalling via the portfile target
</span>421907e is described below

<span style='display:block; white-space:pre;color:#808000;'>commit 421907e67eb001aeb13730666d788bee0d9557a6
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Wed Sep 14 00:23:48 2022 +1000

<span style='display:block; white-space:pre;color:#404040;'>    Prefer uninstalling via the portfile target
</span>---
 tools/uninstall-unneeded-ports.tcl | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/tools/uninstall-unneeded-ports.tcl b/tools/uninstall-unneeded-ports.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index 4d23906..6724d7e 100755
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/tools/uninstall-unneeded-ports.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/tools/uninstall-unneeded-ports.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -129,6 +129,10 @@ foreach port [registry::entry imaged] {
</span>         }
     }
     if {$uninstall} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>-        registry_uninstall::uninstall $installed_name $installed_version $installed_revision $installed_variants [list ports_force 1]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        # Try to run the target via the portfile first, so pre/post code runs
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        if {![registry::run_target $port uninstall [list ports_force 1]]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            # Portfile failed, use the registry directly
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            registry_uninstall::uninstall $installed_name $installed_version $installed_revision $installed_variants [list ports_force 1]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        }
</span>     }
 }
</pre><pre style='margin:0'>

</pre>