[Secure-testing-commits] r57520 - org
Chris Lamb
lamby at moszumanska.debian.org
Fri Nov 10 07:52:35 UTC 2017
Author: lamby
Date: 2017-11-10 07:52:35 +0000 (Fri, 10 Nov 2017)
New Revision: 57520
Added:
org/lts-frontdesk.py
Log:
org/lts-frontdesk.py: New script to generate weeks for frontdesk years.
Added: org/lts-frontdesk.py
===================================================================
--- org/lts-frontdesk.py (rev 0)
+++ org/lts-frontdesk.py 2017-11-10 07:52:35 UTC (rev 57520)
@@ -0,0 +1,42 @@
+#!/usr/bin/env python3
+
+import sys
+import datetime
+
+HEADER = """
+Presentation
+------------
+
+The LTS frontdesk handles:
+
+ * CVE triaging:
+ https://wiki.debian.org/LTS/Development#Triage_new_security_issues
+
+ * Making sure that queries on debian-lts at lists.debian.org get an answer.
+
+Who is in charge ?
+------------------
+"""
+
+LINE = """From {0.day:02d}-{0.month:02d} to {1.day:02d}-{1.month:02d}:"""
+
+
+def main(year):
+ print(HEADER.strip())
+ print()
+
+ for x, y in generate_weeks(int(year)):
+ print(LINE.format(x, y))
+
+
+def generate_weeks(year):
+ dt = datetime.date(year, 1, 1)
+
+ while dt.year == year:
+ if dt.weekday() == 0:
+ yield (dt, dt + datetime.timedelta(days=6))
+ dt += datetime.timedelta(days=1)
+
+
+if __name__ == '__main__':
+ sys.exit(main(*sys.argv[1:]))
Property changes on: org/lts-frontdesk.py
___________________________________________________________________
Added: svn:executable
+ *
More information about the Secure-testing-commits
mailing list