File: dont-display-as-dev-version.patch

package info (click to toggle)
keepass2 2.57%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,520 kB
  • sloc: cs: 120,930; xml: 6,271; cpp: 322; sh: 53; makefile: 42
file content (24 lines) | stat: -rw-r--r-- 871 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From: Debian CLI Applications Team
 <pkg-cli-apps-team@lists.alioth.debian.org>
Date: Tue, 10 Jan 2017 17:35:29 +0100
Subject: dont-display-as-dev-version

The debian key for signing the binaries is not the same as upstreams signig key.
---
 KeePass/Program.cs | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/KeePass/Program.cs b/KeePass/Program.cs
index 08bdf32..5b8396a 100644
--- a/KeePass/Program.cs
+++ b/KeePass/Program.cs
@@ -985,8 +985,7 @@ namespace KeePass
 				Assembly asm = typeof(Program).Assembly;
 				byte[] pk = asm.GetName().GetPublicKeyToken();
 				string strPk = MemUtil.ByteArrayToHexString(pk);
-				Debug.Assert(string.IsNullOrEmpty(strPk) || (strPk.Length == 16));
-				return string.Equals(strPk, "fed2ed7716aecf5c", StrUtil.CaseIgnoreCmp);
+				return true;
 			}
 			catch(Exception) { Debug.Assert(false); }