commit
8a026ab8b4
|
|
@ -1941,7 +1941,7 @@ func (al *additionalLayer) Info() (io.ReadCloser, error) {
|
|||
return os.Open(filepath.Join(al.path, "info"))
|
||||
}
|
||||
|
||||
// Blob returns a reader of the raw contents of this leyer.
|
||||
// Blob returns a reader of the raw contents of this layer.
|
||||
func (al *additionalLayer) Blob() (io.ReadCloser, error) {
|
||||
return os.Open(filepath.Join(al.path, "blob"))
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1408,7 +1408,7 @@ func (r *layerStore) Diff(from, to string, options *DiffOptions) (io.ReadCloser,
|
|||
|
||||
if ad, ok := r.driver.(drivers.AdditionalLayerStoreDriver); ok {
|
||||
if aLayer, err := ad.LookupAdditionalLayerByID(to); err == nil {
|
||||
// This is an additional layer. We leverage blob API for aquiring the reproduced raw blob.
|
||||
// This is an additional layer. We leverage blob API for acquiring the reproduced raw blob.
|
||||
info, err := aLayer.Info()
|
||||
if err != nil {
|
||||
aLayer.Release()
|
||||
|
|
|
|||
Loading…
Reference in New Issue