store/compose/ImageType: use distro.ImageType objects

This reduces the amount of resolving and error checking we have to do.
This exposed a bug in weldr's ComposeEntry type, which will be fixed in
a follow-up commit.

Signed-off-by: Tom Gundersen <teg@jklm.no>
This commit is contained in:
Tom Gundersen 2020-05-11 22:54:28 +02:00
parent 5ba7e21a72
commit 2fe4450620
9 changed files with 77 additions and 54 deletions

View file

@ -117,7 +117,7 @@ func main() {
logger = log.New(os.Stdout, "", 0)
}
store := store.New(&stateDir)
store := store.New(&stateDir, arch)
queueDir := path.Join(stateDir, "jobs")
err = os.Mkdir(queueDir, 0700)