mirror of
https://github.com/urbit/shrub.git
synced 2024-11-28 22:33:06 +03:00
groups: refactor ota
This commit is contained in:
parent
5848d819f8
commit
64065d720c
@ -98,11 +98,13 @@
|
|||||||
[crds old]
|
[crds old]
|
||||||
=/ [pax=path =ship]
|
=/ [pax=path =ship]
|
||||||
i.syncs
|
i.syncs
|
||||||
|
?> ?=(^ pax)
|
||||||
|
?. =('~' i.pax)
|
||||||
|
$(syncs t.syncs)
|
||||||
|
=/ new-path=path
|
||||||
|
t.pax
|
||||||
=. synced.old
|
=. synced.old
|
||||||
(~(del by synced.old) pax)
|
(~(del by synced.old) pax)
|
||||||
=/ new-path=path
|
|
||||||
?> ?=(^ pax)
|
|
||||||
?:(=('~' i.pax) t.pax pax)
|
|
||||||
?. =(ship our.bol)
|
?. =(ship our.bol)
|
||||||
=. synced.old
|
=. synced.old
|
||||||
(~(put by synced.old) new-path ship)
|
(~(put by synced.old) new-path ship)
|
||||||
|
@ -50,11 +50,15 @@
|
|||||||
%0
|
%0
|
||||||
:_ this(state *state-one)
|
:_ this(state *state-one)
|
||||||
|^
|
|^
|
||||||
%+ turn
|
%+ murn
|
||||||
~(tap by synced.old)
|
~(tap by synced.old)
|
||||||
|= [=path host=ship]
|
|= [=path host=ship]
|
||||||
^- card
|
^- (unit card)
|
||||||
?> ?=([@ @ *] path)
|
?> ?=([@ @ *] path)
|
||||||
|
:: ignore duplicate publish groups
|
||||||
|
?: =(4 (lent path))
|
||||||
|
~& "ignoring: {<path>}"
|
||||||
|
~
|
||||||
=/ pax=^path
|
=/ pax=^path
|
||||||
?: =('~' i.path)
|
?: =('~' i.path)
|
||||||
t.path
|
t.path
|
||||||
@ -65,8 +69,8 @@
|
|||||||
(slav %p i.pax)
|
(slav %p i.pax)
|
||||||
[ship i.t.pax]
|
[ship i.t.pax]
|
||||||
?: =(our.bowl host)
|
?: =(our.bowl host)
|
||||||
(add-push rid)
|
`(add-push rid)
|
||||||
(add-pull rid host)
|
`(add-pull rid host)
|
||||||
::
|
::
|
||||||
++ poke-our
|
++ poke-our
|
||||||
|= [app=term =cage]
|
|= [app=term =cage]
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
+$ any-state
|
+$ any-state
|
||||||
$% state
|
$% state
|
||||||
[ver=?(%1 %2 %3 %4 %5 %6) lac=(map @tas fin-any-state)]
|
[ver=?(%1 %2 %3 %4 %5 %6) lac=(map @tas fin-any-state)]
|
||||||
|
[%7 drum=state:drum helm=state:helm kiln=state:kiln]
|
||||||
==
|
==
|
||||||
+$ any-state-tuple
|
+$ any-state-tuple
|
||||||
$: drum=any-state:drum
|
$: drum=any-state:drum
|
||||||
|
@ -224,6 +224,7 @@
|
|||||||
==
|
==
|
||||||
++ add
|
++ add
|
||||||
|= [=ship =resource]
|
|= [=ship =resource]
|
||||||
|
~| resource
|
||||||
?< (~(has by tracking) resource)
|
?< (~(has by tracking) resource)
|
||||||
=. tracking
|
=. tracking
|
||||||
(~(put by tracking) resource ship)
|
(~(put by tracking) resource ship)
|
||||||
|
Loading…
Reference in New Issue
Block a user