urbit/main/bin/update.hoon

28 lines
742 B
Plaintext
Raw Normal View History

2013-09-29 00:21:18 +04:00
!:
:: /=main=/bin/install/hoon
2013-09-29 00:21:18 +04:00
::
=> .(-< `who=@p`-<)
|= [est=time eny=@uw]
2013-09-29 00:21:18 +04:00
|= ~
^- bowl
?: =(~zod who) [~ ~]
=+ bos==+(bos=(sein who) ?.(=(bos who) bos ~zod))
=+ ^= syn ^- (list ,@tas)
[%main %arvo %try ~]
2013-09-29 00:21:18 +04:00
:_ ~
^- (list gift)
:- [%la %leaf "updating..."]
%+ turn syn
|= des=@tas
2013-12-29 07:50:27 +04:00
~& [%reading /(scot %p bos)/[des]/=]
=+ der=((hard dome) .^(%cv /(scot %p bos)/[des]/=))
2013-12-29 07:50:27 +04:00
~& [%reading /(scot %p who)/[des]/=]
=+ owr=((hard dome) .^(%cv /(scot %p who)/[des]/=))
=+ sab=`saba`[bos des [0 let.der] (flop (turn hit.der |=(a=frog q.a)))]
=+ lum=(~(auld ze est owr) est %fine sab)
?~ lum
`gift`[%la %leaf "{(trip des)} failed to merge"]
?~ u.lum
`gift`[%la %leaf "{(trip des)} is up to date"]
`gift`[%ok des u.u.lum]