def said.ok
import ezx@1.11.0.0/src/lock/world.bend as Worldimport Base
import ezx@1.11.0.0/src/lock/lock.bend as L
362# what the hub said a name names, once it is known whether the answer is a
363# `0x` name
364def said.ok(ok: Bool, +nv: String, +hash: String, +hub: String) -> Verdict:
365 match ok:
366 case True{}:
367 Named{[L.Name{nv, hash}]}
368 case False{}:
369 No{"ez: the hub at " ++ hub ++ " names no package " ++ nv ++ " (it answered `" ++
370 hash ++ "`)"}