def decide.hash
import ezx@1.11.0.0/src/add/hub.bend as Hubimport Base
import ezx@1.11.0.0/src/add/world.bend as A
118# a `0x` name the hub answered, or an answer that names none
119def decide.hash(ok: Bool, +hash: String, +world: A.World) -> Verdict:
120 match ok:
121 case True{}:
122 decide.pkg(heard(A.hubs(world), hash), hash, world)
123 case False{}:
124 Stop{"ez: the hub at " ++ A.hub(world) ++ " names no package " ++ nv(world) ++
125 " (it answered `" ++ hash ++ "`)"}