Hide Forgot
Description of problem: Createrepo_c ignores "reboot_suggested" on advisory level, (not to confuse with support on package level). E.g. You can find this type of advisory in rhel7 os repositories. It is critical to get it to the upstream createrepo_c as soon as possible. <update status="final" from="release-engineering@redhat.com" version="4" type="bugfix"> <id>RHBA-xxxx:xxxx</id> => <reboot_suggested>True</reboot_suggested> <references>...</references> <pkglist>...</pkglist> Version-Release number of selected component (if applicable): all How reproducible: always Steps to Reproduce: 1. rec = cr.UpdateRecord() 2. rec.reboot_suggested = True Actual results: no support Expected results: Can parse and generate 'reboot_suggested' on advisory level with createrepo_c for UpdateRecord.
I have created a PR: https://github.com/rpm-software-management/createrepo_c/pull/187
I have updated the current unit tests of createrepo_c to also test this new feature in my PR. But generally AC: - createrepo_c can parse updateinfo with <reboot_suggested> inside the <update> element and expose the value in python - its possible to set reboot_suggested on UpdateRecord from python and then dump this updateinfo with the value present - the default value of reboot_suggested in UpdateRecord when no value is provided is 0.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:1620