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:
2
setup.py
2
setup.py
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user