Finalize repacker

This commit is contained in:
Alexander Neumann
2015-11-02 19:28:30 +01:00
parent 1fc0d78913
commit db41102bfa
4 changed files with 81 additions and 18 deletions

View File

@@ -439,7 +439,12 @@ func (idx *Index) Dump(w io.Writer) error {
return err
}
buf, err := json.MarshalIndent(list, "", " ")
outer := jsonIndex{
Supersedes: idx.Supersedes(),
Packs: list,
}
buf, err := json.MarshalIndent(outer, "", " ")
if err != nil {
return err
}