-# Copyright (C) 2001, 2002 Anthony Towns <ajt@debian.org>
-# $Id: ziyi,v 1.27 2005-11-15 09:50:32 ajt Exp $
+# Copyright (C) 2001, 2002, 2006 Anthony Towns <ajt@debian.org>
# 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
# 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
################################################################################
import sys, os, popen2, tempfile, stat, time
################################################################################
import sys, os, popen2, tempfile, stat, time
Generate Release files (for SUITE).
-h, --help show this help and exit
Generate Release files (for SUITE).
-h, --help show this help and exit
def print_md5_files (tree, files):
print_md5sha_files (tree, files, apt_pkg.md5sum)
def print_md5_files (tree, files):
print_md5sha_files (tree, files, apt_pkg.md5sum)
def print_sha1_files (tree, files):
print_md5sha_files (tree, files, apt_pkg.sha1sum)
def print_sha1_files (tree, files):
print_md5sha_files (tree, files, apt_pkg.sha1sum)
################################################################################
def main ():
global Cnf, AptCnf, projectB, out
out = sys.stdout
################################################################################
def main ():
global Cnf, AptCnf, projectB, out
out = sys.stdout
out.write("Date: %s\n" % (time.strftime("%a, %d %b %Y %H:%M:%S UTC", time.gmtime(time.time()))))
if notautomatic != "":
out.write("NotAutomatic: %s\n" % (notautomatic))
out.write("Date: %s\n" % (time.strftime("%a, %d %b %Y %H:%M:%S UTC", time.gmtime(time.time()))))
if notautomatic != "":
out.write("NotAutomatic: %s\n" % (notautomatic))
release = open(relpath, "w")
#release = open(longsuite.replace("/","_") + "_" + arch + "_" + sec + "_Release", "w")
except IOError:
release = open(relpath, "w")
#release = open(longsuite.replace("/","_") + "_" + arch + "_" + sec + "_Release", "w")
except IOError:
print_md5_files(tree, files)
out.write("SHA1:\n")
print_sha1_files(tree, files)
print_md5_files(tree, files)
out.write("SHA1:\n")
print_sha1_files(tree, files)