Skip to content

Commit

Permalink
Fix issue with overrides
Browse files Browse the repository at this point in the history
- Overrides wouldn't run if a matching file was already found on disk
  • Loading branch information
gotdibbs committed Jan 10, 2016
1 parent bc13f08 commit 298ccc8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Imposter.Fiddler.Installer/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.5")]
[assembly: AssemblyFileVersion("1.0.0.5")]
[assembly: AssemblyVersion("1.0.0.6")]
[assembly: AssemblyFileVersion("1.0.0.6")]
10 changes: 5 additions & 5 deletions Imposter.Fiddler/Helpers/PathHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@ public static string GetLocalFilePath(string urlFragment, string localDirectory,
{
var path = localDirectory + @"\" + urlFragment.Replace("/", @"\");

if (File.Exists(path))
{
return path;
}

foreach (var ovr in overrides)
{
if (ovr != null &&
Expand All @@ -37,6 +32,11 @@ public static string GetLocalFilePath(string urlFragment, string localDirectory,
}
}

if (File.Exists(path))
{
return path;
}

return null;
}

Expand Down
6 changes: 3 additions & 3 deletions Imposter.Fiddler/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Imposter.Fiddler")]
[assembly: AssemblyCopyright("Copyright © 2015")]
[assembly: AssemblyCopyright("Copyright © 2016")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Expand All @@ -32,6 +32,6 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.5")]
[assembly: AssemblyFileVersion("1.0.0.5")]
[assembly: AssemblyVersion("1.0.0.6")]
[assembly: AssemblyFileVersion("1.0.0.6")]
[assembly: Fiddler.RequiredVersion("2.2.8.6")]

0 comments on commit 298ccc8

Please sign in to comment.