mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-06 03:13:03 +00:00
do not add new dotfiles if ALL is used
This commit is contained in:
@@ -658,7 +658,9 @@ class CfgYaml:
|
||||
"""add an existing dotfile key to a profile_key"""
|
||||
self._new_profile(profile_key)
|
||||
profile = self.yaml_dict[self.key_profiles][profile_key]
|
||||
if dotfile_key not in profile[self.key_profile_dotfiles]:
|
||||
pdfs = profile[self.key_profile_dotfiles]
|
||||
if self.key_all not in pdfs and \
|
||||
dotfile_key not in pdfs:
|
||||
profile[self.key_profile_dotfiles].append(dotfile_key)
|
||||
if self.debug:
|
||||
msg = 'add \"{}\" to profile \"{}\"'.format(dotfile_key,
|
||||
|
||||
Reference in New Issue
Block a user