Skip to content

Commit

Permalink
Bugfix: Update plugins with empty build field
Browse files Browse the repository at this point in the history
Better support for plugins that don't contain a build field in the version tag, e. g. 2.1 instead of 2.1.0

Closes #64
  • Loading branch information
Rookiestyle committed Jun 18, 2024
1 parent b4d64f6 commit 4cd6e0f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/PluginUpdateInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ internal virtual bool Download(string sTempFolder)
if (bOK) return bOK;
if (VersionAvailable.Revision > 0) return bOK; //false, but revision is defined
var vVersionAvailableBackup = VersionAvailable;
VersionAvailable = new Version(VersionAvailable.Major, VersionAvailable.Minor, VersionAvailable.Build, 0);
VersionAvailable = new Version(VersionAvailable.Major, VersionAvailable.Minor, VersionAvailable.Build >= 0 ? VersionAvailable.Build : 0, 0);
var bAllowVersionStripping = AllowVersionStripping;
AllowVersionStripping = false;
sFile = MergeInVersion(true);
Expand Down
6 changes: 3 additions & 3 deletions src/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("rookiestyle")]
[assembly: AssemblyProduct("KeePass Plugin")]
[assembly: AssemblyCopyright("Copyright 2021-2023")]
[assembly: AssemblyCopyright("Copyright 2021-2024")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// This sets the default COM visibility of types in the assembly to invisible.
Expand All @@ -26,6 +26,6 @@
//
// You can specify all the values or you can use the default the Revision and
// Build Numbers by using the '*' as shown below:
[assembly: AssemblyVersion("4.2.2")]
[assembly: AssemblyFileVersion("4.2.2")]
[assembly: AssemblyVersion("4.2.3")]
[assembly: AssemblyFileVersion("4.2.3")]
[assembly: Guid("672570AF-CC57-4980-86F9-D48FD1CC707D")]
2 changes: 1 addition & 1 deletion version.info
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:
Early update check:4.2.2
Early update check:4.2.3
Early update check!de:9
Early update check!ru:2
Early update check!fr:1
Expand Down

0 comments on commit 4cd6e0f

Please sign in to comment.