diff --git a/pkg/arvo/lib/hood/kiln.hoon b/pkg/arvo/lib/hood/kiln.hoon index b1be5cf62e..5f37c9b119 100644 --- a/pkg/arvo/lib/hood/kiln.hoon +++ b/pkg/arvo/lib/hood/kiln.hoon @@ -807,10 +807,16 @@ :: ++ poke-uninstall |= loc=desk - ?~ got=(~(get by sources) loc) + =+ .^(=rock:tire %cx /(scot %p our)//(scot %da now)/tire) + ?~ got=(~(get by rock) loc) + abet:(spam leaf+"desk does not exist: {}" ~) + ?: =(+<:got %dead) abet:(spam leaf+"desk not installed: {}" ~) + ~> %slog.(fmt "uninstalling {}") =. ..on-init (emit %pass /kiln/uninstall %arvo %c %zest loc %dead) - (poke-unsync loc u.got) + ?~ sync=(~(get by sources) loc) + abet + (poke-unsync loc u.sync) :: ++ poke-unmount |= mon=kiln-unmount