keepass: 2.49 -> 2.52

https://keepass.info/news/n220909_2.52.html

Changed files
+23 -23
pkgs
+2 -2
pkgs/applications/misc/keepass/default.nix
···
inherit (builtins) add length readFile replaceStrings unsafeDiscardStringContext toString map;
in buildDotnetPackage rec {
pname = "keepass";
-
version = "2.49";
src = fetchurl {
url = "mirror://sourceforge/keepass/KeePass-${version}-Source.zip";
-
sha256 = "sha256-1hg4bRuQSG+UzEQGeQcSURTmTxt5ITGQqfg0IS7RWt0=";
};
sourceRoot = ".";
···
inherit (builtins) add length readFile replaceStrings unsafeDiscardStringContext toString map;
in buildDotnetPackage rec {
pname = "keepass";
+
version = "2.52";
src = fetchurl {
url = "mirror://sourceforge/keepass/KeePass-${version}-Source.zip";
+
sha256 = "sha256-6dGCfysen26VGHIHETuNGkqHbPyeWRIEopqJa6AMzXA=";
};
sourceRoot = ".";
+11 -11
pkgs/applications/misc/keepass/fix-paths.patch
···
index af02803..8a32c9d 100644
--- a/KeePass/Util/AppLocator.cs
+++ b/KeePass/Util/AppLocator.cs
-
@@ -429,7 +429,7 @@ namespace KeePass.Util
if(NativeLib.GetPlatformID() == PlatformID.MacOSX)
-
strArgPrefix = string.Empty; // FR 3535696
-
- string str = NativeLib.RunConsoleApp("whereis", strArgPrefix + strApp);
-
+ string str = NativeLib.RunConsoleApp("@whereis@", strArgPrefix + strApp);
-
if(str == null) return null;
-
str = str.Trim();
diff --git a/KeePass/Util/ClipboardUtil.Unix.cs b/KeePass/Util/ClipboardUtil.Unix.cs
index ab49ee2..7f6c50f 100644
--- a/KeePass/Util/ClipboardUtil.Unix.cs
···
index 2d227a3..243f4ee 100644
--- a/KeePassLib/Native/NativeLib.cs
+++ b/KeePassLib/Native/NativeLib.cs
-
@@ -145,7 +145,7 @@ namespace KeePassLib.Native
-
// Mono returns PlatformID.Unix on Mac OS X, workaround this
-
if(m_platID.Value == PlatformID.Unix)
{
- if((RunConsoleApp("uname", null) ?? string.Empty).Trim().Equals(
+ if((RunConsoleApp("@uname@", null) ?? string.Empty).Trim().Equals(
"Darwin", StrUtil.CaseIgnoreCmp))
-
m_platID = PlatformID.MacOSX;
}
diff --git a/KeePassLib/Utility/MonoWorkarounds.cs b/KeePassLib/Utility/MonoWorkarounds.cs
index e20bb3a..4fd875b 100644
···
private static Dictionary<uint, bool> g_dForceReq = new Dictionary<uint, bool>();
private static Thread g_thFixClip = null;
-
@@ -335,7 +335,7 @@ namespace KeePassLib.Utility
// }
// else { Debug.Assert(false); }
···
index af02803..8a32c9d 100644
--- a/KeePass/Util/AppLocator.cs
+++ b/KeePass/Util/AppLocator.cs
+
@@ -468,7 +468,7 @@ namespace KeePass.Util
if(NativeLib.GetPlatformID() == PlatformID.MacOSX)
+
strOpt = string.Empty; // FR 3535696
+
- string str = NativeLib.RunConsoleApp("whereis", strOpt + strApp);
+
+ string str = NativeLib.RunConsoleApp("@whereis@", strOpt + strApp);
+
if(string.IsNullOrEmpty(str)) return null;
+
int iSep = str.IndexOf(':');
diff --git a/KeePass/Util/ClipboardUtil.Unix.cs b/KeePass/Util/ClipboardUtil.Unix.cs
index ab49ee2..7f6c50f 100644
--- a/KeePass/Util/ClipboardUtil.Unix.cs
···
index 2d227a3..243f4ee 100644
--- a/KeePassLib/Native/NativeLib.cs
+++ b/KeePassLib/Native/NativeLib.cs
+
@@ -143,7 +143,7 @@ namespace KeePassLib.Native
+
// Mono returns PlatformID.Unix on MacOS, workaround this
+
if(g_platID.Value == PlatformID.Unix)
{
- if((RunConsoleApp("uname", null) ?? string.Empty).Trim().Equals(
+ if((RunConsoleApp("@uname@", null) ?? string.Empty).Trim().Equals(
"Darwin", StrUtil.CaseIgnoreCmp))
+
g_platID = PlatformID.MacOSX;
}
diff --git a/KeePassLib/Utility/MonoWorkarounds.cs b/KeePassLib/Utility/MonoWorkarounds.cs
index e20bb3a..4fd875b 100644
···
private static Dictionary<uint, bool> g_dForceReq = new Dictionary<uint, bool>();
private static Thread g_thFixClip = null;
+
@@ -356,7 +356,7 @@ namespace KeePassLib.Utility
// }
// else { Debug.Assert(false); }
+10 -10
pkgs/applications/misc/keepass/keepass-plugins.patch
···
diff --git a/KeePass/Forms/MainForm.cs b/KeePass/Forms/MainForm.cs
index 347eaf5..b92e1e2 100644
-
--- a/KeePass/Forms/MainForm.cs
-
+++ b/KeePass/Forms/MainForm.cs
-
@@ -440,7 +440,$OUTPUT_LC$ @@ namespace KeePass.Forms
-
ToolStripItemCollection tsicT = m_ctxTray.Items;
-
ToolStripItem tsiPrevT = m_ctxTrayOptions;
-
-
- m_pluginManager.LoadAllPlugins();
$DO_LOADS$+
-
-
m_pluginManager.AddMenuItems(PluginMenuType.Main, tsicM, tsiPrevM);
-
m_pluginManager.AddMenuItems(PluginMenuType.Group, tsicGM, tsiPrevGM);
--
2.25.4
···
diff --git a/KeePass/Forms/MainForm.cs b/KeePass/Forms/MainForm.cs
index 347eaf5..b92e1e2 100644
+
--- a/KeePass/Forms/MainForm_Functions.cs
+
+++ b/KeePass/Forms/MainForm_Functions.cs
+
@@ -312,7 +312,$OUTPUT_LC$ @@ namespace KeePass.Forms
+
ToolStripItemCollection tsicT = m_ctxTray.Items;
+
ToolStripItem tsiPrevT = m_ctxTrayOptions;
+
+
- m_pluginManager.LoadAllPlugins();
$DO_LOADS$+
+
+
m_pluginManager.AddMenuItems(PluginMenuType.Main, tsicM, tsiPrevM);
+
m_pluginManager.AddMenuItems(PluginMenuType.Group, tsicGM, tsiPrevGM);
--
2.25.4