]> err.no Git - dak/commitdiff
remove existing Release.gpg files and overwrite
authorAnthony Towns <aj@azure.humbug.org.au>
Wed, 21 Mar 2001 23:20:59 +0000 (23:20 +0000)
committerAnthony Towns <aj@azure.humbug.org.au>
Wed, 21 Mar 2001 23:20:59 +0000 (23:20 +0000)
ziyi

diff --git a/ziyi b/ziyi
index ebbf7b35eab454cc8cfc24ba044c73a9910c8450..d6a6da06357006b8674389a577f95e3024c86c99 100755 (executable)
--- a/ziyi
+++ b/ziyi
@@ -3,7 +3,7 @@
 # Create all the Release files
 
 # Copyright (C) 2001  Anthony Towns <ajt@debian.org>
-# $Id: ziyi,v 1.3 2001-03-08 05:24:57 ajt Exp $
+# $Id: ziyi,v 1.4 2001-03-21 23:20:59 ajt Exp $
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -178,9 +178,11 @@ def main ():
 
        out.close()
        if Cnf.has_key("Dinstall::SigningKeyring"):
+           dest = Cnf["Dir::RootDir"] + tree + "/Release.gpg"
+           if os.path.exists(dest):
+               os.unlink(dest)
            os.system("gpg --secret-keyring \"%s\" --no-options --batch --no-tty --armour --detach-sign <%s --output=%s" % (Cnf["Dinstall::SigningKeyring"], 
-               Cnf["Dir::RootDir"] + tree + "/Release",
-               Cnf["Dir::RootDir"] + tree + "/Release.gpg"))
+               Cnf["Dir::RootDir"] + tree + "/Release", dest))
 
 #######################################################################################