X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=ziyi;h=d6a6da06357006b8674389a577f95e3024c86c99;hb=bff9fbafb548106326749e4534e3378974edcdc5;hp=67eab957dd88ceb5594cada424763ba0434a21ce;hpb=1c3f12a092b938e96e06455531ed009c46c35306;p=dak.git diff --git a/ziyi b/ziyi index 67eab957..d6a6da06 100755 --- a/ziyi +++ b/ziyi @@ -3,7 +3,7 @@ # Create all the Release files # Copyright (C) 2001 Anthony Towns -# $Id: ziyi,v 1.2 2001-03-06 04:29:21 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"): - os.system("gpg --secret-keyring \"%s\" --no-options --batch --no-tty --armour --detach-sign <%s >%s" % (Cnf["Dinstall::SigningKeyring"], - Cnf["Dir::RootDir"] + tree + "/Release", - Cnf["Dir::RootDir"] + tree + "/Release.gpg")) + 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", dest)) #######################################################################################