]> git.decadent.org.uk Git - dak.git/blobdiff - dak/generate_releases.py
Valid-Until
[dak.git] / dak / generate_releases.py
index fbe948e204c2fdecb7b3a13ed99106f72deda342..543532fdfdf0057f97bfeac809b59789d8ee4372 100755 (executable)
@@ -24,8 +24,8 @@
 
 import sys, os, popen2, tempfile, stat, time, pg
 import apt_pkg
-import daklib.utils as utils
-from daklib.exceptions import *
+from daklib import utils
+from daklib.dak_exceptions import *
 
 ################################################################################
 
@@ -218,6 +218,7 @@ def main ():
         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 notautomatic != "":
             out.write("NotAutomatic: %s\n" % (notautomatic))
         out.write("Architectures: %s\n" % (" ".join(filter(utils.real_arch, SuiteBlock.ValueList("Architectures")))))