store: don't keep a "default" distro
Only the weldr API has the concept of a default distro. Pass that distro explicitly to `PushCompose()` and fetch the distro from the compose in all other functions that accessed Store.Distro.
This commit is contained in:
parent
15033faa81
commit
0f1a014aca
6 changed files with 38 additions and 27 deletions
|
|
@ -99,7 +99,7 @@ func main() {
|
|||
logger = log.New(os.Stdout, "", 0)
|
||||
}
|
||||
|
||||
store := store.New(&stateDir, distribution, *distros)
|
||||
store := store.New(&stateDir, *distros)
|
||||
|
||||
jobAPI := jobqueue.New(logger, store)
|
||||
weldrAPI := weldr.New(rpm, common.CurrentArch(), distribution, logger, store)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue