Skip to content

Commit

Permalink
Fix detecting orphan products
Browse files Browse the repository at this point in the history
  • Loading branch information
nirbar committed Aug 31, 2023
1 parent 58ea21b commit bdfed44
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
version:
description: 'Build & package version'
required: true
default: 0.1.2
default: 0.1.3
type: string
jobs:
Build:
Expand Down
2 changes: 1 addition & 1 deletion MsiZapEx/ComponentInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ internal static List<ComponentInfo> GetComponents(Guid productCode, bool machine
{
GetAllComponents();
List<ComponentInfo> components = new List<ComponentInfo>();
components.AddRange(_components.FindAll(ci => ci.MachineScope == machineContext && ci.ProductsKeyPath.Any(p => p.ProductCode.Equals(productCode))));
components.AddRange(_components.FindAll(ci => ci.ProductsKeyPath.Any(p => p.ProductCode.Equals(productCode))));
return components;
}

Expand Down
2 changes: 1 addition & 1 deletion MsiZapEx/ProductInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public static List<ProductInfo> GetOrphanProducts()
ProductInfo pi = products.FirstOrDefault(p => p.ProductCode.Equals(keyPath.ProductCode));
if (pi == null)
{
pi = new ProductInfo(keyPath.ProductCode);
pi = new ProductInfo(keyPath.ProductCode, ci.MachineScope);
products.Add(pi);
}
}
Expand Down

0 comments on commit bdfed44

Please sign in to comment.