aboutsummaryrefslogtreecommitdiffstats
path: root/MgaRepo/log.py
diff options
context:
space:
mode:
authorPer Øyvind Karlsen <proyvind@moondrake.org>2016-06-01 01:22:15 +0200
committerPascal Terjan <pterjan@mageia.org>2018-02-27 12:20:12 +0000
commit2ce962b65821b04583cad02c700b1342f0e38273 (patch)
tree65f8d64aca3a94b3d532fe61a28227cff4b2628c /MgaRepo/log.py
parent0797d9e33caa5dfd5a59e94c7b1c14c7aaecf19b (diff)
downloadmgarepo-2ce962b65821b04583cad02c700b1342f0e38273.tar
mgarepo-2ce962b65821b04583cad02c700b1342f0e38273.tar.gz
mgarepo-2ce962b65821b04583cad02c700b1342f0e38273.tar.bz2
mgarepo-2ce962b65821b04583cad02c700b1342f0e38273.tar.xz
mgarepo-2ce962b65821b04583cad02c700b1342f0e38273.zip
make sure " (not released yet)\n" message for revisions not released is to the specific changelog entry and not above, which breaks changelog
Diffstat (limited to 'MgaRepo/log.py')
-rw-r--r--MgaRepo/log.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/MgaRepo/log.py b/MgaRepo/log.py
index fab7d6e..ac76b1e 100644
--- a/MgaRepo/log.py
+++ b/MgaRepo/log.py
@@ -361,8 +361,10 @@ def dump_file(releases, currentlog=None, template=None):
releases_author = releases_author[:-1]
for rel in releases_author:
if not rel.released:
- draft = " (not released yet)\n"
- draft = draft + "* {0} {1} <{2}> {3}-{4}\n+ Revision: {5}\n".format(rel.date, rel.author_name, rel.author_email, rel.version, rel.release, rel.revision)
+ unreleased = " (not released yet)\n"
+ else:
+ unreleased = ""
+ draft = draft + "* {0} {1} <{2}> {3}-{4}\n{5}+ Revision: {6}\n".format(rel.date, rel.author_name, rel.author_email, rel.version, rel.release, unreleased, rel.revision)
if not rel.visible:
draft = draft + "+ rebuild (emptylog)\n"
for rev in rel.release_revisions: