1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-10 03:24:17 +00:00

remove legacy checks for dotfiles under profile

This commit is contained in:
deadc0de6
2019-02-07 21:14:14 +01:00
parent 48df932ae4
commit 06203cfb94
2 changed files with 2 additions and 14 deletions

View File

@@ -153,19 +153,6 @@ class Cfg:
if self.key_dotfiles not in self.content:
self.log.err('missing \"{}\" in config'.format(self.key_dotfiles))
return False
if self.content[self.key_profiles]:
# make sure dotfiles are in a sub called "dotfiles"
# and adapt if there are not
profiles = self.content[self.key_profiles]
changed = False
for k in profiles.keys():
if self.key_profiles_dots not in profiles[k] and \
self.key_profiles_incl not in profiles[k]:
profiles[k] = {self.key_profiles_dots: profiles[k]}
changed = True
if changed:
# save the new config file
self._save(self.content, self.cfgpath)
return True
def _parse(self):