mirror of https://github.com/containers/image.git
ostree: support only uncompressed images for now
the previous implementation relied on the golang gzip implementation to generate always the same stream and thus checksum. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
71c7fde653
commit
c809f3dc87
|
|
@ -301,10 +301,8 @@ func (s *ostreeImageSource) GetBlob(info types.BlobInfo) (io.ReadCloser, int64,
|
|||
ots := asm.NewOutputTarStream(getter, metaUnpacker)
|
||||
|
||||
pipeReader, pipeWriter := io.Pipe()
|
||||
gzipWriter := gzip.NewWriter(pipeWriter)
|
||||
go func() {
|
||||
io.Copy(gzipWriter, ots)
|
||||
gzipWriter.Close()
|
||||
io.Copy(pipeWriter, ots)
|
||||
pipeWriter.Close()
|
||||
}()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue