mirror of
https://github.com/containers/podman.git
synced 2025-12-01 02:27:13 +08:00
Bump Buidah to v1.42.0 for Podman v5.7
Vendor Buildah v1.42.0 into Podman for v5.7.0. This will also drag in: go.podman.io/common v0.66.0 go.podman.io/image v5.38.0 go.podman.io/storage v1.61.0 Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
This commit is contained in:
8
vendor/github.com/containers/buildah/info.go
generated
vendored
8
vendor/github.com/containers/buildah/info.go
generated
vendored
@@ -183,11 +183,11 @@ func getHostDistributionInfo() map[string]string {
|
||||
|
||||
l := bufio.NewScanner(f)
|
||||
for l.Scan() {
|
||||
if strings.HasPrefix(l.Text(), "ID=") {
|
||||
dist["Distribution"] = strings.TrimPrefix(l.Text(), "ID=")
|
||||
if after, ok := strings.CutPrefix(l.Text(), "ID="); ok {
|
||||
dist["Distribution"] = after
|
||||
}
|
||||
if strings.HasPrefix(l.Text(), "VERSION_ID=") {
|
||||
dist["Version"] = strings.Trim(strings.TrimPrefix(l.Text(), "VERSION_ID="), "\"")
|
||||
if after, ok := strings.CutPrefix(l.Text(), "VERSION_ID="); ok {
|
||||
dist["Version"] = strings.Trim(after, "\"")
|
||||
}
|
||||
}
|
||||
return dist
|
||||
|
||||
Reference in New Issue
Block a user