From 687f0cdaab2ad8433c99128fbb2432b08173d14e Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Sun, 15 Nov 2020 10:59:11 +0100 Subject: [PATCH] mode is int --- dotdrop/cfg_yaml.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dotdrop/cfg_yaml.py b/dotdrop/cfg_yaml.py index 2d83512..84127ef 100644 --- a/dotdrop/cfg_yaml.py +++ b/dotdrop/cfg_yaml.py @@ -326,9 +326,7 @@ class CfgYaml: self._dbg('new dotfile src: {}'.format(src)) self._dbg('new dotfile dst: {}'.format(dst)) self._dbg('new dotfile link: {}'.format(link)) - if chmod: - self._dbg('new dotfile chmod: {}'.format(chmod)) - + self._dbg('new dotfile chmod: {}'.format(chmod)) df_dict = { self.key_dotfile_src: src, self.key_dotfile_dst: dst, @@ -655,7 +653,7 @@ class CfgYaml: err = 'bad format for chmod: {}'.format(val) self._log.err(err) raise YamlException('config content error: {}'.format(err)) - v[self.key_dotfile_chmod] = val + v[self.key_dotfile_chmod] = int(val, 8) return new