diff options
author | Michał Górny <mgorny@gentoo.org> | 2018-10-19 10:24:46 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-10-20 13:16:28 +0300 |
commit | e8232c7825fdb3783ffa84e90f3ab8f2224a1399 (patch) | |
tree | 8df75e076d71065e92db84cb59083d2a625debaf /mesonbuild/minstall.py | |
parent | 066060e8c9402b3ae510de7fbddeeb3b528247c9 (diff) | |
download | meson-e8232c7825fdb3783ffa84e90f3ab8f2224a1399.tar.gz |
Remove implicit compression of man pages
Remove the code responsible for implicitly compressing manpages as .gz
files. It has been established that manpage compression is a distro
packager's task, with existing distros already having their own
implementations of compression.
Fixes #4330
Diffstat (limited to 'mesonbuild/minstall.py')
-rw-r--r-- | mesonbuild/minstall.py | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/mesonbuild/minstall.py b/mesonbuild/minstall.py index b65abe058..7a2af30cf 100644 --- a/mesonbuild/minstall.py +++ b/mesonbuild/minstall.py @@ -379,17 +379,7 @@ class Installer: outdir = os.path.dirname(outfilename) d.dirmaker.makedirs(outdir, exist_ok=True) install_mode = m[2] - if outfilename.endswith('.gz') and not full_source_filename.endswith('.gz'): - with open(outfilename, 'wb') as of: - with open(full_source_filename, 'rb') as sf: - # Set mtime and filename for reproducibility. - with gzip.GzipFile(fileobj=of, mode='wb', filename='', mtime=0) as gz: - gz.write(sf.read()) - shutil.copystat(full_source_filename, outfilename) - print('Installing %s to %s' % (full_source_filename, outdir)) - append_to_log(self.lf, outfilename) - else: - self.do_copyfile(full_source_filename, outfilename) + self.do_copyfile(full_source_filename, outfilename) set_mode(outfilename, install_mode, d.install_umask) def install_headers(self, d): |