File: 0005-Revert-Update-to-avoid-deprecated-types.patch

package info (click to toggle)
golang-github-containers-buildah 1.41.4%2Bds1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 8,152 kB
  • sloc: sh: 2,569; makefile: 241; perl: 187; asm: 16; awk: 12; ansic: 1
file content (30 lines) | stat: -rw-r--r-- 1,029 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From: Reinhard Tartler <siretart@tauware.de>
Date: Sun, 7 Sep 2025 11:22:22 -0400
Subject: Revert "Update to avoid deprecated types"

This reverts commit 9ac03e6bf91afa59c7c3f7d683042d2b8d5956ef.
---
 pkg/parse/parse_unix.go | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/pkg/parse/parse_unix.go b/pkg/parse/parse_unix.go
index e3ac5a6..3417cb8 100644
--- a/pkg/parse/parse_unix.go
+++ b/pkg/parse/parse_unix.go
@@ -8,7 +8,6 @@ import (
 	"path/filepath"
 
 	"github.com/containers/buildah/define"
-	"github.com/opencontainers/cgroups/devices/config"
 	"github.com/opencontainers/runc/libcontainer/devices"
 )
 
@@ -48,7 +47,7 @@ func DeviceFromPath(device string) (define.ContainerDevices, error) {
 	}
 	for _, d := range srcDevices {
 		d.Path = filepath.Join(dst, filepath.Base(d.Path))
-		d.Permissions = config.Permissions(permissions)
+		d.Permissions = devices.Permissions(permissions)
 		device := define.BuildahDevice{Device: *d, Source: src, Destination: dst}
 		devs = append(devs, device)
 	}