1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-08 18:59:16 +00:00

add chmod

This commit is contained in:
deadc0de6
2020-11-09 21:08:53 +01:00
parent b5d8745fea
commit 2ac55f3f18
5 changed files with 149 additions and 54 deletions

View File

@@ -156,7 +156,8 @@ class CfgAggregator:
if self.debug:
self.log.dbg('new dotfile key: {}'.format(key))
# add the dotfile
self.cfgyaml.add_dotfile(key, src, dst, link, chmod=chmod)
if not self.cfgyaml.add_dotfile(key, src, dst, link, chmod=chmod):
return None
return Dotfile(key, dst, src)
def new(self, src, dst, link, chmod=None):
@@ -172,6 +173,9 @@ class CfgAggregator:
if not dotfile:
dotfile = self._create_new_dotfile(src, dst, link, chmod=chmod)
if not dotfile:
return False
key = dotfile.key
ret = self.cfgyaml.add_dotfile_to_profile(key, self.profile_key)
if ret and self.debug: