Add or detectOs(Manjaro) (#12587) [backport]

Using `pacman` command in Manjaro Linux

(cherry picked from commit 1ff3494dabd0fa5bf619fc8bd558381ead7c358d)
This commit is contained in:
jiro 2019-11-04 20:20:23 +09:00 • committed by narimiran
commit 0694bd47b9

View file

@ -227,7 +227,7 @@ proc foreignDepInstallCmd*(foreignPackageName: string): (string, bool) =
result = ("pkg install " & p, true)
elif detectOs(PCLinuxOS):
result = ("rpm -ivh " & p, true)
elif detectOs(ArchLinux):
elif detectOs(ArchLinux) or detectOs(Manjaro):
result = ("pacman -S " & p, true)
else:
result = ("<your package manager here> install " & p, true)