mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-11 20:03:59 +00:00
fix bug for #250
This commit is contained in:
@@ -1077,15 +1077,17 @@ class CfgYaml:
|
|||||||
|
|
||||||
# only keep dotfiles related to the selected profile
|
# only keep dotfiles related to the selected profile
|
||||||
pdfs = []
|
pdfs = []
|
||||||
pro = self.profiles.get(self._profile)
|
pro = self.profiles.get(self._profile, [])
|
||||||
if pro:
|
if pro:
|
||||||
pdfs = pro.get(self.key_profile_dotfiles, [])
|
pdfs = list(pro.get(self.key_profile_dotfiles, []))
|
||||||
for addpro in self._inc_profiles:
|
for addpro in self._inc_profiles:
|
||||||
pro = self.profiles.get(addpro)
|
pro = self.profiles.get(addpro, [])
|
||||||
if not pro:
|
if not pro:
|
||||||
continue
|
continue
|
||||||
pdfsalt = pro.get(self.key_profile_dotfiles, [])
|
pdfsalt = pro.get(self.key_profile_dotfiles, [])
|
||||||
pdfs.extend(pdfsalt)
|
pdfs.extend(pdfsalt)
|
||||||
|
pdfs = uniq_list(pdfs)
|
||||||
|
|
||||||
if self.key_all not in pdfs:
|
if self.key_all not in pdfs:
|
||||||
# take a subset of the dotfiles
|
# take a subset of the dotfiles
|
||||||
newdotfiles = {}
|
newdotfiles = {}
|
||||||
|
|||||||
Reference in New Issue
Block a user