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:
Giuseppe Scrivano 2017-11-22 00:56:06 +01:00
parent 71c7fde653
commit c809f3dc87
No known key found for this signature in database
GPG Key ID: 263D6DF2E163E1EA
1 changed files with 1 additions and 3 deletions

View File

@ -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()
}()