1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-10 01:44:16 +00:00

fix precedence for #443

This commit is contained in:
deadc0de6
2024-11-06 14:44:55 +01:00
parent b53f9396ec
commit e7335ec44e

View File

@@ -1096,14 +1096,14 @@ class CfgYaml:
] ]
# merge top entries # merge top entries
self.dotfiles = self._merge_dict(self.dotfiles, sub.dotfiles) self.dotfiles = self._merge_dict(sub.dotfiles, self.dotfiles)
self.profiles = self._merge_dict(self.profiles, sub.profiles, self.profiles = self._merge_dict(sub.profiles, self.profiles,
deep=True) deep=True)
self.actions = self._merge_dict(self.actions, sub.actions) self.actions = self._merge_dict(sub.actions, self.actions)
self.trans_install = self._merge_dict(self.trans_install, self.trans_install = self._merge_dict(sub.trans_install,
sub.trans_install) self.trans_install)
self.trans_update = self._merge_dict(self.trans_update, self.trans_update = self._merge_dict(sub.trans_update,
sub.trans_update) self.trans_update)
self._clear_profile_vars(sub.variables) self._clear_profile_vars(sub.variables)
self.imported_configs.append(path) self.imported_configs.append(path)
@@ -1693,6 +1693,7 @@ class CfgYaml:
""" """
both dict must be the same form/type both dict must be the same form/type
if deep is True, then merge recursively if deep is True, then merge recursively
high dict entries take precedence over low dict
""" """
if not high: if not high:
high = {} high = {}