2008-09-23 Joerg Jaspert <joerg@debian.org>
+ * config/debian/dak.conf: Add the validtime fields, set to 7
+ days.
+
* dak/generate_releases.py (main): Add a "Valid-Until" line into
our release files, meaning "$receiver shouldn't trust this files
after that date". Should be used by apt and similar tools to
CodeName "etch-proposed-updates";
OverrideCodeName "etch";
OverrideSuite "stable";
+ ValidTime 604800; // 7 days
Priority "4";
VersionChecks
{
Description "Debian Testing distribution - Not Released";
CodeName "lenny";
OverrideCodeName "lenny";
+ ValidTime 604800; // 7 days
Priority "5";
UdebComponents
{
CodeName "testing-proposed-updates";
OverrideCodeName "lenny";
OverrideSuite "testing";
+ ValidTime 604800; // 7 days
Priority "6";
VersionChecks
{
Description "Debian Unstable - Not Released";
CodeName "sid";
OverrideCodeName "sid";
+ ValidTime 604800; // 7 days
Priority "7";
VersionChecks
{
NotAutomatic "yes";
OverrideCodeName "sid";
OverrideSuite "unstable";
+ ValidTime 604800; // 7 days
Priority "0";
VersionChecks
{
if codename != "":
out.write("Codename: %s\n" % (codename))
out.write("Date: %s\n" % (time.strftime("%a, %d %b %Y %H:%M:%S UTC", time.gmtime(time.time()))))
- out.write("Valid-Until: %s\n" % (time.strftime("%a, %d %b %Y %H:%M:%S UTC", time.gmtime(time.time()+7*24*60*60))))
+
+ if SuiteBlock.has_key("ValidTime"):
+ validtime=float(SuiteBlock["ValidTime"])
+ out.write("Valid-Until: %s\n" % (time.strftime("%a, %d %b %Y %H:%M:%S UTC", time.gmtime(time.time()+validtime))))
+
if notautomatic != "":
out.write("NotAutomatic: %s\n" % (notautomatic))
out.write("Architectures: %s\n" % (" ".join(filter(utils.real_arch, SuiteBlock.ValueList("Architectures")))))