1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-09 11:14:17 +00:00
This commit is contained in:
deadc0de6
2022-08-25 23:21:11 +02:00
parent 348823eec7
commit 5b9d248219
14 changed files with 312 additions and 323 deletions

View File

@@ -221,7 +221,7 @@ class CfgAggregator:
"""create a new dotfile"""
# get a new dotfile with a unique key
key = self._get_new_dotfile_key(dst)
self.log.dbg('new dotfile key: {}'.format(key))
self.log.dbg(f'new dotfile key: {key}')
# add the dotfile
trans_r_key = trans_w_key = None
if trans_read:
@@ -298,7 +298,7 @@ class CfgAggregator:
self._patch_keys_to_objs([self.settings],
"default_actions", self._get_action_w_args)
msg = 'default actions: {}'.format(self.settings.default_actions)
msg = f'default actions: {self.settings.default_actions}'
self.log.dbg(msg)
# patch trans_w/trans_r in dotfiles
@@ -318,7 +318,7 @@ class CfgAggregator:
"""
if not containers:
return
self.log.dbg('patching {} ...'.format(keys))
self.log.dbg(f'patching {keys} ...')
for container in containers:
objects = []
okeys = getattr(container, keys)
@@ -329,8 +329,8 @@ class CfgAggregator:
for key in okeys:
obj = get_by_key(key)
if not obj:
err = '{} does not contain'.format(container)
err += ' a {} entry named {}'.format(keys, key)
err = f'{container} does not contain'
err += f' a {keys} entry named {key}'
self.log.err(err)
raise Exception(err)
objects.append(obj)