Skip to content

Commit

Permalink
even more debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
matthid committed Jul 10, 2016
1 parent 67adf38 commit 0b29d9c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/Paket.Core/InstallModel.fs
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,9 @@ module InstallModel =
match restrictions with
| [] -> installModel
| restrictions ->
printfn "Restriction (in applyFrameworkRestrictions): %A" restrictions
let applRestriction folder =
printfn "Restriction (in applRestriction): %A" restrictions
{ folder with Targets = applyRestrictionsToTargets restrictions folder.Targets}

{ installModel with
Expand Down
4 changes: 3 additions & 1 deletion src/Paket.Core/Requirements.fs
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,7 @@ let filterRestrictions (list1:FrameworkRestrictions) (list2:FrameworkRestriction
/// Get if a target should be considered with the specified restrictions
let isTargetMatchingRestrictions =
(*memoize <|*) fun (restrictions:FrameworkRestriction list, target) ->
printfn "Restriction (in isTargetMatchingRestrictions): %A" restrictions
if List.isEmpty restrictions then true else
match target with
| SinglePlatform (Runtimes _ ) -> true
Expand All @@ -425,7 +426,7 @@ let isTargetMatchingRestrictions =
| DotNetStandard _, DotNetFramework _ -> false
| _ ->
let isComp = pf.IsCompatible(fw)
printf "pf (%A) is compatible with fw (%A): %A" pf fw isComp
printfn "pf (%A) is compatible with fw (%A): %A" pf fw isComp
isComp
| FrameworkRestriction.Portable _ -> false
| FrameworkRestriction.AtLeast fw ->
Expand All @@ -447,6 +448,7 @@ let isTargetMatchingRestrictions =

/// Get all targets that should be considered with the specified restrictions
let applyRestrictionsToTargets (restrictions:FrameworkRestriction list) (targets: TargetProfile list) =
printfn "Restriction (in applyRestrictionsToTargets): %A" restrictions
targets
|> List.filter (fun t -> isTargetMatchingRestrictions(restrictions,t))

Expand Down

0 comments on commit 0b29d9c

Please sign in to comment.