# Create all the Release files
# Copyright (C) 2001 Anthony Towns <ajt@debian.org>
-# $Id: ziyi,v 1.1 2001-03-02 02:25:15 troup 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
else:
print "ALERT: no tree/bindirectory for %s" % (tree)
+ 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", dest))
+
#######################################################################################
if __name__ == '__main__':