Skip to content
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.

Commit

Permalink
Fixed regression on mono
Browse files Browse the repository at this point in the history
- Use HOME instead of ProgramFiles
- Removed tracing for replacement attempts
#974
  • Loading branch information
davidfowl committed Dec 6, 2014
1 parent 7a3d13e commit a5f8100
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/Microsoft.Framework.Runtime/Servicing/ServicingIndex.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,6 @@ public void Initialize(string folderPath)

public bool TryGetReplacement(string packageId, SemanticVersion packageVersion, string assetPath, out string replacementPath)
{
Trace.TraceInformation("[{0}]: TryGetReplacement {1} {2} {3}", GetType().Name, packageId, packageVersion, assetPath);

Entry entry;
if (_entries.TryGetValue(new EntryKey(packageId, packageVersion), out entry))
{
Expand Down
6 changes: 5 additions & 1 deletion src/Microsoft.Framework.Runtime/Servicing/ServicingTable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,15 @@ private static ServicingIndex LoadIndex()
var kreServicing = Environment.GetEnvironmentVariable("KRE_SERVICING");
if (string.IsNullOrEmpty(kreServicing))
{
var servicingRoot = Environment.GetEnvironmentVariable("ProgramFiles") ??
Environment.GetEnvironmentVariable("HOME");
kreServicing = Path.Combine(
Environment.GetEnvironmentVariable("ProgramFiles"),
servicingRoot,
"KRE",
"Servicing");
}
index.Initialize(kreServicing);
return index;
});
Expand Down

0 comments on commit a5f8100

Please sign in to comment.