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

transformations first steps

This commit is contained in:
deadc0de6
2018-02-07 10:21:15 +01:00
parent fa62ffeef7
commit ef1fffd1a1
4 changed files with 28 additions and 2 deletions

View File

@@ -130,8 +130,13 @@ class Cfg:
entries = v[self.key_dotfiles_trans] if \
self.key_dotfiles_trans in v else []
trans = self._parse_actions(self.trans, entries)
self.dotfiles[k] = Dotfile(k, dst, src,
link=link, actions=actions
if len(trans) > 0 and link:
msg = 'transformations disabled for \"%s\"' % (dst)
msg += ' as link is True' % (dst)
self.log.warn(msg)
trans = []
self.dotfiles[k] = Dotfile(k, dst, src, link=link,
actions=actions,
trans=trans)
# assign dotfiles to each profile