diff options
author | Per Øyvind Karlsen <proyvind@moondrake.org> | 2016-06-01 01:22:15 +0200 |
---|---|---|
committer | Pascal Terjan <pterjan@mageia.org> | 2018-02-27 12:20:12 +0000 |
commit | 2ce962b65821b04583cad02c700b1342f0e38273 (patch) | |
tree | 65f8d64aca3a94b3d532fe61a28227cff4b2628c /MgaRepo | |
parent | 0797d9e33caa5dfd5a59e94c7b1c14c7aaecf19b (diff) | |
download | mgarepo-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')
-rw-r--r-- | MgaRepo/log.py | 6 |
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: |