- 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))