def judge

ezx@1.11.0.0 · src/fetch/plan.bend:684

import ezx@1.11.0.0/src/fetch/plan.bend as Plan
import Base
import ezx@1.11.0.0/src/pkg/pkg.bend as K

684# what one package comes to, where it stands
685def judge(+fs: List<&2, K.Item>, +hash: String, part: Part) -> Verdict:
686  match part:
687    case AskLaid{}:
688      Stop{"ez: " ++ hash ++ " was never looked for under BEND_LIB"}
689    case AskFetch{}:
690      Stop{"ez: " ++ hash ++ " was never fetched"}
691    case Have{}:
692      Keep{}
693    case Got{+ls}:
694      judge.got(good(fs, hash, ls), fs, hash, ls)
695    case No{why}:
696      Stop{why}

Uses (8)

Used by (1)