
* Remove deprecated build_projects sources * Remove BuildSetup, StandardGoals, and Target Attributes * Incremental restore of tasks dll * CheckPreReq conforms with MSBuild Error Handling guidelines * Eliminate deprecated content * PR Feedback
21 lines
539 B
C#
21 lines
539 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using Microsoft.DotNet.Cli.Build.Framework;
|
|
|
|
namespace Microsoft.DotNet.Cli.Build
|
|
{
|
|
public class YumDependencyUtility
|
|
{
|
|
public static bool PackageIsInstalled(string packageName)
|
|
{
|
|
var result = Command.Create("yum", "list", "installed", packageName)
|
|
.CaptureStdOut()
|
|
.CaptureStdErr()
|
|
.Execute();
|
|
|
|
return result.ExitCode == 0;
|
|
}
|
|
}
|
|
}
|