Skip to content

Commit c9878b8

Browse files
committed
New version only if version is greater than actual version, not different
1 parent 909160b commit c9878b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

XrmToolBox.ToolLibrary/ToolLibrary.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ public void AnalyzePackage(XtbPlugin plugin, Version targetVersion = null)
180180

181181
existingFileVersion = existingFileVersion.Simplify();
182182

183-
if (targetVersion == null && !existingFileVersion.Equals(new Version(plugin.Version).Simplify())
184-
|| targetVersion != null && !existingFileVersion.Equals(targetVersion))
183+
if (targetVersion == null && existingFileVersion < new Version(plugin.Version).Simplify()
184+
|| targetVersion != null && existingFileVersion < targetVersion.Simplify())
185185
{
186186
update = true;
187187
}

0 commit comments

Comments
 (0)