Merge pull request #16471 from dfr/freebsd-info

libpod: Add FreeBSD support in packageVersion
This commit is contained in:
OpenShift Merge Robot 2022-11-10 10:38:16 +00:00 committed by GitHub
commit fbf441affd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 5 deletions

View File

@ -176,6 +176,7 @@ func packageVersion(program string) string { // program is full path
{"/usr/bin/qfile", "-qv"}, // Gentoo (quick) {"/usr/bin/qfile", "-qv"}, // Gentoo (quick)
{"/usr/bin/equery", "b"}, // Gentoo (slow) {"/usr/bin/equery", "b"}, // Gentoo (slow)
{"/sbin/apk", "info", "-W"}, // Alpine {"/sbin/apk", "info", "-W"}, // Alpine
{"/usr/local/sbin/pkg", "which", "-q"}, // FreeBSD
} }
for _, cmd := range packagers { for _, cmd := range packagers {