Install trustlist.txt and trustlist.txt.example.
authorEmanuel Schuetze <emanuel.schuetze@intevation.de>
Tue, 2 Nov 2010 08:54:28 +0000 (08:54 +0000)
committerEmanuel Schuetze <emanuel.schuetze@intevation.de>
Tue, 2 Nov 2010 08:54:28 +0000 (08:54 +0000)
ChangeLog
src/inst-gnupg2.nsi

index 83c0bf1..98f1da2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-11-02  Emanuel Schuetze <emanuel@intevation.de>
+
+       * src/inst-gnupg2.nsi: Install trustlist.txt and trustlist.txt.example
+         into $APPDATA\GNU\etc\gnupg.
+
 2010-09-24  Werner Koch  <wk@g10code.com>
 
        * patches/gnupg2-2.0.16/06-reread-agent.patch: New.
index 55e2d05..d80928a 100644 (file)
@@ -177,6 +177,13 @@ ${MementoSection} "GnuPG" SEC_gnupg2
   SetShellVarContext all
   SetOutPath "$APPDATA\GNU\etc\gnupg"
   File /oname=gpgconf-conf.skel "${source}/doc/examples/gpgconf.conf"
+  File /oname=trustlist.txt.example "${source}/doc/examples/trustlist.txt"
+  # create empty trustlist.txt if not exists
+  IfFileExists "$APPDATA\GNU\etc\gnupg\trustlist.txt" TrustlistExists TrustlistNotExists
+  TrustlistNotExists:
+    FileOpen $9 trustlist.txt w ;Open new file
+    FileClose $9 ;Closes file
+  TrustlistExists:
   SetShellVarContext current