commit d5f5598c1dd9a45861ce37b4718c9052d9272867
parent dee8a7eed81cf069d7dbb5254dc2c097918c4a8c
Author: parazyd <parazyd@dyne.org>
Date: Wed, 28 Jun 2017 14:33:56 +0200
skip writing Valid-Until in Release files
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/release.py b/lib/release.py
@@ -24,10 +24,10 @@ def write_release(oldrel, newrel, filelist, r, sign=True):
* string to remove from the path of the hashed file
"""
t1 = datetime.utcnow()
- t2 = datetime.utcnow() + timedelta(days=7)
+ # t2 = datetime.utcnow() + timedelta(days=7)
prettyt1 = t1.strftime('%a, %d %b %Y %H:%M:%S UTC')
- prettyt2 = t2.strftime('%a, %d %b %Y %H:%M:%S UTC')
+ # prettyt2 = t2.strftime('%a, %d %b %Y %H:%M:%S UTC')
old = open(oldrel).read()
new = open(newrel, 'w')
@@ -35,7 +35,7 @@ def write_release(oldrel, newrel, filelist, r, sign=True):
rel_cont = parse_release_head(old)
rel_cont['Date'] = prettyt1
- rel_cont['Valid-Until'] = prettyt2
+ # rel_cont['Valid-Until'] = prettyt2
for k in release_keys:
if k in rel_cont: