def pack.sects.of
import ezx@1.11.0.0/src/lock/lock.bend as Lockimport Base
import ezx@1.11.0.0/src/toml/toml.bend as T
import ezx@1.11.0.0/src/pkg/pkg.bend as K
452# the two tables a package is written as, from its files already in path
453# order and each one once
454def pack.sects.of(hash: String, src: Src, fs: List<&2, K.Item>) -> List<&2, T.Sect>:
455 +at = "packages." ++ T.quote(hash)
456 [T.Sect{at ++ ".source", src.pairs(src)},
457 T.Sect{at ++ ".files", file.pairs(fs)}]