store: add image size to compose status response
All composes now include the image size in their status response. The image size will be 0 except for finished composes where it will be the file length in bytes.
This commit is contained in:
parent
4d94207488
commit
4366e390cf
2 changed files with 20 additions and 2 deletions
|
|
@ -299,7 +299,7 @@ func (api *API) modulesListHandler(writer http.ResponseWriter, request *http.Req
|
|||
if total > offset && total < end {
|
||||
modules = append(modules, modulesListModule{pkg.Name, "rpm"})
|
||||
// this removes names that have been found from the list of names
|
||||
if len(names) < i - 1 {
|
||||
if len(names) < i-1 {
|
||||
names = append(names[:i], names[i+1:]...)
|
||||
} else {
|
||||
names = names[:i]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue