aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPer Øyvind Karlsen <proyvind@moondrake.org>2016-06-01 01:22:15 +0200
committerPer Øyvind Karlsen <proyvind@moondrake.org>2016-06-01 01:22:15 +0200
commit7e888745c754cf01723c2e06485ef362127b07d4 (patch)
tree525e532053da4118328bfa98899da08d5326d40c
parent071ff4727cbb8461fdcb826aeb5d67ea462ebfeb (diff)
downloadmgarepo-7e888745c754cf01723c2e06485ef362127b07d4.tar
mgarepo-7e888745c754cf01723c2e06485ef362127b07d4.tar.gz
mgarepo-7e888745c754cf01723c2e06485ef362127b07d4.tar.bz2
mgarepo-7e888745c754cf01723c2e06485ef362127b07d4.tar.xz
mgarepo-7e888745c754cf01723c2e06485ef362127b07d4.zip
make sure " (not released yet)\n" message for revisions not released is
to the specific changelog entry and not above, which breaks changelog
-rw-r--r--MgaRepo/log.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/MgaRepo/log.py b/MgaRepo/log.py
index 04d6289..797c0a1 100644
--- a/MgaRepo/log.py
+++ b/MgaRepo/log.py
@@ -313,8 +313,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: