kojid: explicit binary writing mode
Fixes: https://pagure.io/koji/issue/2411
This commit is contained in:
parent
563e519708
commit
1b600d10a4
1 changed files with 1 additions and 1 deletions
|
|
@ -2069,7 +2069,7 @@ class WrapperRPMTask(BaseBuildTask):
|
|||
contents = contents.encode('utf-8')
|
||||
|
||||
specfile = spec_template[:-5]
|
||||
with open(specfile, 'w') as specfd:
|
||||
with open(specfile, 'wb') as specfd:
|
||||
specfd.write(contents)
|
||||
|
||||
# Run spec file sanity checks. Any failures will throw a BuildError
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue