mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-18 19:43:24 -04:00
dev-util/osc: bump to 0.172, drop old
Include a patch to disable compressing manpage with gzip at build time. Closes: https://bugs.gentoo.org/780960 Signed-off-by: Anna Vyalkova <cyber@sysrq.in>
This commit is contained in:
31
dev-util/osc/files/osc-no-man-compression.patch
Normal file
31
dev-util/osc/files/osc-no-man-compression.patch
Normal file
@@ -0,0 +1,31 @@
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -3,7 +3,6 @@
|
||||
from distutils.core import setup
|
||||
import distutils.core
|
||||
from distutils.command import build, install_data
|
||||
-import gzip
|
||||
import os.path
|
||||
import sys
|
||||
|
||||
@@ -29,9 +28,9 @@
|
||||
def build_man_page(self):
|
||||
"""
|
||||
"""
|
||||
- man_path = os.path.join(self.build_base, 'osc.1.gz')
|
||||
+ man_path = os.path.join(self.build_base, 'osc.1')
|
||||
distutils.log.info('generating %s' % man_path)
|
||||
- outfile = gzip.open(man_path, 'wt')
|
||||
+ outfile = open(man_path, 'w')
|
||||
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)
|
||||
@@ -100,7 +99,7 @@
|
||||
|
||||
data_files = []
|
||||
if sys.platform[:3] != 'win':
|
||||
- data_files.append((os.path.join('share', 'man', 'man1'), ['osc.1.gz']))
|
||||
+ data_files.append((os.path.join('share', 'man', 'man1'), ['osc.1']))
|
||||
|
||||
with open("README") as fh:
|
||||
long_description = fh.read()
|
||||
Reference in New Issue
Block a user