[elbe-devel] [PATCH 4/5] changelogxml: make old_version optional
Torben Hohn
torben.hohn at linutronix.de
Mon Jul 8 16:38:15 CEST 2019
the old version only exists when, check_updates is used to generate the
changelogsxml.
In the future a changelogsxml file may also be built with every elbe run.
make the old_version optional.
Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
elbepack/changelogxml.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/elbepack/changelogxml.py b/elbepack/changelogxml.py
index 376fc241d..036aefc5e 100644
--- a/elbepack/changelogxml.py
+++ b/elbepack/changelogxml.py
@@ -22,7 +22,8 @@ class changelogs_xml(object):
xmlpkg = self.pkglist.append('changelog')
xmlpkg.et.attrib['name'] = xp.name
xmlpkg.et.attrib['version'] = xp.candidate_version
- xmlpkg.et.attrib['old_version'] = xp.installed_version
+ if xp.candidate_version:
+ xmlpkg.et.attrib['old_version'] = xp.installed_version
xmlpkg.et.text = changelog_text.decode('utf-8', 'replace')
--
2.11.0
More information about the elbe-devel
mailing list