diff options
author | Nicolas Schneider <nioncode+git@gmail.com> | 2019-01-01 21:01:32 +0100 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-01-06 22:35:04 +0200 |
commit | 735e138382c2876c181edd09e6bf9bb76225be6d (patch) | |
tree | 9c4b6a2f8eb6118a9643847054424db46b2a1e69 /mesonbuild/minstall.py | |
parent | 142cf1459fae41bb9cdfcc9dd445f61dc56db8c4 (diff) | |
download | meson-735e138382c2876c181edd09e6bf9bb76225be6d.zip meson-735e138382c2876c181edd09e6bf9bb76225be6d.tar.gz meson-735e138382c2876c181edd09e6bf9bb76225be6d.tar.bz2 |
fix meson configure exception when install_umask is not an int
Diffstat (limited to 'mesonbuild/minstall.py')
-rw-r--r-- | mesonbuild/minstall.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/minstall.py b/mesonbuild/minstall.py index 4cdd3c6..74a8497 100644 --- a/mesonbuild/minstall.py +++ b/mesonbuild/minstall.py @@ -106,7 +106,7 @@ def set_chmod(path, mode, dir_fd=None, follow_symlinks=True): os.chmod(path, mode, dir_fd=dir_fd) def sanitize_permissions(path, umask): - if umask is None: + if umask == 'preserve': return new_perms = 0o777 if is_executable(path, follow_symlinks=False) else 0o666 new_perms &= ~umask @@ -332,7 +332,7 @@ class Installer: d.destdir = os.environ.get('DESTDIR', '') d.fullprefix = destdir_join(d.destdir, d.prefix) - if d.install_umask is not None: + if d.install_umask != 'preserve': os.umask(d.install_umask) self.did_install_something = False |