Add support for the DnF package manager

(replaced yum in fedora 22)
This commit is contained in:
skwerlman
2016-08-31 09:14:43 -04:00
committed by GitHub
parent 74d685193e
commit 27912e8bff

View File

@@ -1716,6 +1716,17 @@ class PlatformSetup {
}
var whichDnf = ProcessHelper.runProcess ("", "which", ["dnf"], true, true, true);
var hasDnf = whichDnf != null && whichDnf != "";
if (hasDnf) {
var parameters = [ "dnf", "install" ].concat (linuxDnfPackages.split (" "));
ProcessHelper.runCommand ("", "sudo", parameters, false);
return;
}
var whichEquo = ProcessHelper.runProcess ("", "which", ["equo"], true,true, true);
var hasEquo = whichEquo != null && whichEquo != "";