aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2022-06-02 14:27:07 -0400
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2022-06-02 14:27:07 -0400
commitf057cb93e1094eceeedf86ce906aa90616541674 (patch)
treec1c40a67b58af465e398d8366713e545b2b0e75a
parentef2bec9db7f633b50558fb82b3c04e7a3addfe6e (diff)
downloadkorg-helpers-f057cb93e1094eceeedf86ce906aa90616541674.tar.gz
Tweak wording on mainline-when
Add a note in the vcal output that the final release may actually end up being another -rc instead. Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rwxr-xr-xmainline-when.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/mainline-when.py b/mainline-when.py
index 4898d54..864952a 100755
--- a/mainline-when.py
+++ b/mainline-when.py
@@ -103,7 +103,9 @@ def main(estnext=3, forcever=None, rjson=None):
logger.info(f'{majver}.{nextver} final : {frel.strftime("%Y-%m-%d")}')
ics.append((majver, nextver, wo, wc, frel))
logger.info('---')
- logger.info('NB: all dates are estimates')
+ logger.info('NB: All dates set in the future are estimates.')
+ if minver > 16:
+ logger.info('NB: Major version number means nothing and can go up at any time.')
return ics
@@ -111,7 +113,7 @@ def write_ics(ics, outfile, domain):
if not domain:
domain = 'mainline-when.local'
now = datetime.datetime.now()
- admonition = 'NOTE: all dates set in the future are automatically generated guesstimates.'
+ admonition = 'NOTE: all dates set in the future are estimates.'
with open(outfile, 'w') as fh:
fh.write('BEGIN:VCALENDAR\r\n')
fh.write('VERSION:2.0\r\n')
@@ -146,7 +148,11 @@ def write_ics(ics, outfile, domain):
fh.write(f'UID:kernel-v{majver}.{minver}-final@{domain}\r\n')
fh.write(f'SUMMARY:Kernel v{majver}.{minver} final release\r\n')
if frel > now:
- fh.write(f'DESCRIPTION:{admonition}\r\n')
+ fh.write(f'DESCRIPTION:{admonition} If deemed necessary, this may end up being another -rc release.')
+ if minver > 16:
+ fw.write(' Major version number means nothing and can go up at any time.')
+ fh.write('\r\n')
+
fh.write('CLASS:PUBLIC\r\n')
fh.write(f'DTSTART;VALUE=DATE:{frel.strftime("%Y%m%d")}\r\n')
fh.write(f'CREATED:{now.strftime("%Y%m%d")}\r\n')