Skip to content

Commit 2666773

Browse files
committed
Add a log when an update is ignored
1 parent 5cf5d66 commit 2666773

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/UniGetUI.PackageEngine.Managers.WinGet/Helpers/WinGetPkgOperationHelper.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,10 @@ protected override OperationVeredict _getOperationResult(
160160

161161
if (uintCode is 0x8A15002B)
162162
{
163-
if (Settings.Get("IgnoreUpdatesNotApplicable"))
163+
if (Settings.Get("IgnoreUpdatesNotApplicable")) {
164+
Logger.Info("Ignoring update " + package.Name + " as the update is not applicable to the platform");
164165
IgnoredUpdatesDatabase.Add(IgnoredUpdatesDatabase.GetIgnoredIdForPackage(package), package.Version);
166+
}
165167
return OperationVeredict.Failure;
166168
}
167169

0 commit comments

Comments
 (0)