Module: check_mk
Branch: master
Commit: ce1bd39ce3238777390bc8c41edb0779cbc11868
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ce1bd39ce32387…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Feb 16 09:21:55 2017 +0100
werks in announcement mails: dont show the version
Change-Id: I20bb31855afb598f160630fe489105e86c1ce21d
---
lib/werks.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lib/werks.py b/lib/werks.py
index b4ea681..cb2d201 100644
--- a/lib/werks.py
+++ b/lib/werks.py
@@ -182,7 +182,7 @@ def write_precompiled_werks(path, werks):
# Writhe the given werks to a file object. This is used for creating a textual
# change log for the released versions and the announcement mails
-def write_as_text(werks, f):
+def write_as_text(werks, f, write_version=True):
version, component = None, None
for werk in sort_by_version_and_component(werks.values()):
if version != werk["version"]:
@@ -191,7 +191,8 @@ def write_as_text(werks, f):
version, component = werk["version"], None
- f.write("%s:\n" % werk["version"])
+ if write_version:
+ f.write("%s:\n" % werk["version"])
if component != werk["component"]:
if component is not None: