Skip to content

Commit

Permalink
update mono check
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudRoutine committed Dec 3, 2016
1 parent 65b29e7 commit cd6d161
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Paket.Core/GitCommandHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ let mutable monoArguments = ""

/// Modifies the ProcessStartInfo according to the platform semantics
let platformInfoAction (psi : ProcessStartInfo) =
if isMono && psi.FileName.EndsWith ".exe" then
if isMonoRuntime && psi.FileName.EndsWith ".exe" then
psi.Arguments <- monoArguments + " " + psi.FileName + " " + psi.Arguments
psi.FileName <- monoPath
/// Specifies a global timeout for git.exe - default is *no timeout*
Expand Down Expand Up @@ -134,7 +134,7 @@ let startedProcesses = HashSet()

/// [omit]
let start (proc : Process) =
if isMono && proc.StartInfo.FileName.ToLowerInvariant().EndsWith(".exe") then
if isMonoRuntime && proc.StartInfo.FileName.ToLowerInvariant().EndsWith(".exe") then
proc.StartInfo.Arguments <- "--debug \"" + proc.StartInfo.FileName + "\" " + proc.StartInfo.Arguments
proc.StartInfo.FileName <- monoPath

Expand Down
4 changes: 2 additions & 2 deletions src/Paket.Core/Utils.fs
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,8 @@ let isMatchingOperatingSystem (operatingSystemFilter : string option) =
let isMatchingPlatform (operatingSystemFilter : string option) =
match operatingSystemFilter with
| None -> true
| Some filter when filter = "mono" -> isMono
| Some filter when filter = "windows" -> not isMono
| Some filter when filter = "mono" -> isMonoRuntime
| Some filter when filter = "windows" -> not isMonoRuntime
| _ -> isMatchingOperatingSystem operatingSystemFilter

/// [omit]
Expand Down

0 comments on commit cd6d161

Please sign in to comment.