A change in the RPM bindings 4.15 [1] that changed the RPM header return type from 'bytes' to 'string' causes module scratch build submissions that include custom SRPMs (eg., fedpkg module-scratch-build ... --srpm foo.src.rpm) to blow up with the error:
Could not execute module_scratch_build: 'str' object has no attribute 'decode'
This PR handles that RPM change by handling either return value type.
A change in the RPM bindings 4.15 [1] that changed the RPM header return type from 'bytes' to 'string' causes module scratch build submissions that include custom SRPMs (eg.,
fedpkg module-scratch-build ... --srpm foo.src.rpm) to blow up with the error:Could not execute module_scratch_build: 'str' object has no attribute 'decode'This PR handles that RPM change by handling either return value type.
[1] https://github.com/rpm-software-management/rpm/commit/84920f898315d09a57a3f1067433eaeb7de5e830