1
0
mirror of https://github.com/openSUSE/osc.git synced 2026-01-30 09:28:59 +01:00

fix build of osc package. open the gzip file in text mode

This commit is contained in:
lethliel
2018-03-19 13:13:16 +01:00
parent d07d6b9b22
commit 3deb147555

View File

@@ -28,7 +28,7 @@ class build_osc(distutils.command.build.build, object):
import gzip
man_path = os.path.join(self.build_base, 'osc.1.gz')
distutils.log.info('generating %s' % man_path)
outfile = gzip.open(man_path, 'w')
outfile = gzip.open(man_path, 'wt')
osccli = commandline.Osc(stdout=outfile)
# FIXME: we cannot call the main method because osc expects an ~/.oscrc
# file (this would break builds in environments like the obs)