Skip to content

Commit 4cd6e0f

Browse files
committed
Bugfix: Update plugins with empty build field
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
1 parent b4d64f6 commit 4cd6e0f

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/PluginUpdateInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ internal virtual bool Download(string sTempFolder)
446446
if (bOK) return bOK;
447447
if (VersionAvailable.Revision > 0) return bOK; //false, but revision is defined
448448
var vVersionAvailableBackup = VersionAvailable;
449-
VersionAvailable = new Version(VersionAvailable.Major, VersionAvailable.Minor, VersionAvailable.Build, 0);
449+
VersionAvailable = new Version(VersionAvailable.Major, VersionAvailable.Minor, VersionAvailable.Build >= 0 ? VersionAvailable.Build : 0, 0);
450450
var bAllowVersionStripping = AllowVersionStripping;
451451
AllowVersionStripping = false;
452452
sFile = MergeInVersion(true);

src/Properties/AssemblyInfo.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
[assembly: AssemblyConfiguration("")]
1515
[assembly: AssemblyCompany("rookiestyle")]
1616
[assembly: AssemblyProduct("KeePass Plugin")]
17-
[assembly: AssemblyCopyright("Copyright 2021-2023")]
17+
[assembly: AssemblyCopyright("Copyright 2021-2024")]
1818
[assembly: AssemblyTrademark("")]
1919
[assembly: AssemblyCulture("")]
2020
// This sets the default COM visibility of types in the assembly to invisible.
@@ -26,6 +26,6 @@
2626
//
2727
// You can specify all the values or you can use the default the Revision and
2828
// Build Numbers by using the '*' as shown below:
29-
[assembly: AssemblyVersion("4.2.2")]
30-
[assembly: AssemblyFileVersion("4.2.2")]
29+
[assembly: AssemblyVersion("4.2.3")]
30+
[assembly: AssemblyFileVersion("4.2.3")]
3131
[assembly: Guid("672570AF-CC57-4980-86F9-D48FD1CC707D")]

version.info

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
:
2-
Early update check:4.2.2
2+
Early update check:4.2.3
33
Early update check!de:9
44
Early update check!ru:2
55
Early update check!fr:1

0 commit comments

Comments
 (0)