def hub.key
import ezx@1.11.0.0/src/ez/named.bend as Namedimport Base
import ezx@1.11.0.0/src/ledger/manifest.bend as M
222# the name a hub package is recorded under: `--rename` when it is given, else
223# the ledger's for this name part, else the name part itself
224def hub.key(ds: List<&2, M.Dep>, +part: String, +rename: String) -> String:
225 +old = hub.had(ds, part)
226 Bool.pick(String, String.is_empty(rename),
227 Bool.pick(String, String.is_empty(old), part, old), rename)