Add package install command for FreeBSD and OpenBSD. (#14051)

This commit is contained in:
Arnaud Moura 2020-04-21 22:07:19 +02:00 • committed by GitHub
commit cb2b9bd797
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -231,8 +231,10 @@ proc foreignDepInstallCmd*(foreignPackageName: string): (string, bool) =
result = ("netpkg install " & p, true) result = ("netpkg install " & p, true)
elif detectOs(NixOS): elif detectOs(NixOS):
result = ("nix-env -i " & p, false) result = ("nix-env -i " & p, false)
elif detectOs(Solaris): elif detectOs(Solaris) or detectOs(FreeBSD):
result = ("pkg install " & p, true) result = ("pkg install " & p, true)
elif detectOs(OpenBSD):
result = ("pkg_add " & p, true)
elif detectOs(PCLinuxOS): elif detectOs(PCLinuxOS):
result = ("rpm -ivh " & p, true) result = ("rpm -ivh " & p, true)
elif detectOs(ArchLinux) or detectOs(Manjaro): elif detectOs(ArchLinux) or detectOs(Manjaro):