Skip to content

Commit

Permalink
Simplify the simplifier
Browse files Browse the repository at this point in the history
  • Loading branch information
forki committed Oct 22, 2015
1 parent cb5077b commit d5c4273
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/Paket.Core/DependenciesFile.fs
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ type DependenciesFile(fileName,groups:Map<GroupName,DependenciesGroup>, textRepr
let sameRequirements =
rest |> Seq.forall (fun p' -> p'.Settings.FrameworkRestrictions = package.Settings.FrameworkRestrictions)

if not sameRequirements || package.Settings.FrameworkRestrictions = [] then dependenciesFile else
if not sameRequirements then dependenciesFile else

let newDependenciesFile = dependenciesFile.AddFrameworkRestriction(group.Name,package.Settings.FrameworkRestrictions)
group.Packages
Expand Down Expand Up @@ -471,7 +471,8 @@ type DependenciesFile(fileName,groups:Map<GroupName,DependenciesGroup>, textRepr
|> Map.map resolveGroup


member private __.AddFrameworkRestriction(groupName, frameworkRestrictions:FrameworkRestrictions) =
member private this.AddFrameworkRestriction(groupName, frameworkRestrictions:FrameworkRestrictions) =
if frameworkRestrictions = [] then this else
let restrictionString = sprintf "framework %s" (String.Join(", ",frameworkRestrictions))

let list = new System.Collections.Generic.List<_>()
Expand Down
4 changes: 2 additions & 2 deletions src/Paket/Paket.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@
<StartArguments>update group Build</StartArguments>
<StartArguments>pack output D:\code\paketbug\output</StartArguments>
<StartArguments>install</StartArguments>
<StartArguments>update</StartArguments>
<StartArguments>convert-from-nuget -f</StartArguments>
<StartAction>Project</StartAction>
<StartProgram>paket.exe</StartProgram>
<StartWorkingDirectory>c:\code\Paketkopie</StartWorkingDirectory>
<StartWorkingDirectory>C:\Temp\paket_test\</StartWorkingDirectory>
<StartWorkingDirectory>d:\code\paketkopie</StartWorkingDirectory>
<StartWorkingDirectory>d:\code\paketbug</StartWorkingDirectory>
<StartWorkingDirectory>d:\code\paketrepro</StartWorkingDirectory>
<StartWorkingDirectory>d:\code\paketbug</StartWorkingDirectory>
<StartWorkingDirectory>D:\code\NServiceBus</StartWorkingDirectory>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
Expand Down

0 comments on commit d5c4273

Please sign in to comment.