[elbe-devel] [PATCH 5/5] changelogxml: output the source_pkg attribute, if it exists

Torben Hohn torben.hohn at linutronix.de
Mon Jul 8 16:38:16 CEST 2019


Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
 elbepack/changelogxml.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/elbepack/changelogxml.py b/elbepack/changelogxml.py
index 036aefc5e..b786be298 100644
--- a/elbepack/changelogxml.py
+++ b/elbepack/changelogxml.py
@@ -24,6 +24,8 @@ class changelogs_xml(object):
         xmlpkg.et.attrib['version'] = xp.candidate_version
         if xp.candidate_version:
             xmlpkg.et.attrib['old_version'] = xp.installed_version
+        if xp.source_pkg:
+            xmlpkg.et.attrib['source_pkg'] = xp.source_pkg
 
         xmlpkg.et.text = changelog_text.decode('utf-8', 'replace')
 
-- 
2.11.0




More information about the elbe-devel mailing list