- rel = "%s/binary-%s/Release" % (sec, arch)
- relpath = Cnf["Dir::RootDir"]+tree+"/"+rel
- if os.path.exists(relpath):
- try:
- release = open(relpath, "w")
- #release = open(string.replace(longsuite,"/","_") + "_" + arch + "_" + sec + "_Release", "w")
- except IOError:
- print "Couldn't write to " + relpath
- else:
- release.write("Archive: %s\n" % (suite))
- if version != "":
- release.write("Version: %s\n" % (version))
- if nonus:
- release.write("Component: non-US/%s\n" % (sec))
- else:
- release.write("Component: %s\n" % (sec))
- release.write("Origin: %s\n" % (origin))
- release.write("Label: %s\n" % (label))
- if notautomatic != "":
- release.write("NotAutomatic: %s\n" % (notautomatic))
- release.write("Architecture: %s\n" % (arch))
- release.close()
- files.append("%s/binary-%s/Release" % (sec,arch))
-