mirror of
https://github.com/containers/podman.git
synced 2025-12-02 19:28:58 +08:00
Update vendor or containers/buildah
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
4
vendor/github.com/containers/buildah/pkg/parse/parse_unix.go
generated
vendored
4
vendor/github.com/containers/buildah/pkg/parse/parse_unix.go
generated
vendored
@@ -20,7 +20,7 @@ func DeviceFromPath(device string) (define.ContainerDevices, error) {
|
||||
}
|
||||
srcInfo, err := os.Stat(src)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("error getting info of source device %s: %w", src, err)
|
||||
return nil, fmt.Errorf("getting info of source device %s: %w", src, err)
|
||||
}
|
||||
|
||||
if !srcInfo.IsDir() {
|
||||
@@ -37,7 +37,7 @@ func DeviceFromPath(device string) (define.ContainerDevices, error) {
|
||||
// If source device is a directory
|
||||
srcDevices, err := devices.GetDevices(src)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("error getting source devices from directory %s: %w", src, err)
|
||||
return nil, fmt.Errorf("getting source devices from directory %s: %w", src, err)
|
||||
}
|
||||
for _, d := range srcDevices {
|
||||
d.Path = filepath.Join(dst, filepath.Base(d.Path))
|
||||
|
||||
Reference in New Issue
Block a user