gall: run +ap-kill-down only once

This commit is contained in:
yosoyubik 2022-06-30 17:06:22 +02:00
parent 2107240962
commit cb5893ac05

View File

@ -221,12 +221,15 @@
=^ tan ap-core (ap-install:ap-core `p.old-state.egg.i.apps)
?^ tan
(mean u.tan)
=/ boats=(list [=wire =dock])
~(tap in ~(key by boat.egg.i.apps))
|- ^+ ap-core
?~ boats ap-core
=/ [=wire =dock] i.boats
$(boats t.boats, ap-core (ap-kill-down:ap-core wire dock))
=? ap-core =(%8 -.spore)
~> %slog.[0 leaf+"gall: running +ap-kill-down"]
=/ boats=(list [=wire =dock])
~(tap in ~(key by boat.egg.i.apps))
|- ^+ ap-core
?~ boats ap-core
=/ [=wire =dock] i.boats
$(boats t.boats, ap-core (ap-kill-down:ap-core wire dock))
ap-core
$(apps t.apps, mo-core ap-abet:ap-core)
=. mo-core (mo-subscribe-to-agent-builds:mo-core now)
=^ moves adult-gate mo-abet:mo-core