1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-05 01:34:42 +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):

View File

@@ -68,8 +68,9 @@ exec bspwm
f.write(' trans: {}\n'.format(d.trans_r.key))
f.write('profiles:\n')
f.write(' {}:\n'.format(profile))
f.write(' dotfiles:\n')
for d in dotfiles:
f.write(' - {}\n'.format(d.key))
f.write(' - {}\n'.format(d.key))
return path
def test_install(self):