mirror of
https://github.com/containers/podman.git
synced 2025-05-21 00:56:36 +08:00
Add API support for NoOverwriteDirNonDir
Update method signatures and structs to pass option to buildah code ```release-note NONE ``` [NO NEW TESTS NEEDED] Signed-off-by: Jhon Honce <jhonce@redhat.com>
This commit is contained in:
@ -446,7 +446,7 @@ func (c *Container) AddArtifact(name string, data []byte) error {
|
||||
return define.ErrCtrRemoved
|
||||
}
|
||||
|
||||
return ioutil.WriteFile(c.getArtifactPath(name), data, 0740)
|
||||
return ioutil.WriteFile(c.getArtifactPath(name), data, 0o740)
|
||||
}
|
||||
|
||||
// GetArtifact reads the specified artifact file from the container
|
||||
@ -877,7 +877,7 @@ func (c *Container) ShouldRestart(ctx context.Context) bool {
|
||||
|
||||
// CopyFromArchive copies the contents from the specified tarStream to path
|
||||
// *inside* the container.
|
||||
func (c *Container) CopyFromArchive(ctx context.Context, containerPath string, chown bool, rename map[string]string, tarStream io.Reader) (func() error, error) {
|
||||
func (c *Container) CopyFromArchive(_ context.Context, containerPath string, chown, noOverwriteDirNonDir bool, rename map[string]string, tarStream io.Reader) (func() error, error) {
|
||||
if !c.batched {
|
||||
c.lock.Lock()
|
||||
defer c.lock.Unlock()
|
||||
@ -887,7 +887,7 @@ func (c *Container) CopyFromArchive(ctx context.Context, containerPath string, c
|
||||
}
|
||||
}
|
||||
|
||||
return c.copyFromArchive(containerPath, chown, rename, tarStream)
|
||||
return c.copyFromArchive(containerPath, chown, noOverwriteDirNonDir, rename, tarStream)
|
||||
}
|
||||
|
||||
// CopyToArchive copies the contents from the specified path *inside* the
|
||||
|
Reference in New Issue
Block a user