Skip to content

Commit

Permalink
🐛 Fix removing default template (#357)
Browse files Browse the repository at this point in the history
  • Loading branch information
mayankpatibandla authored May 21, 2024
1 parent 025a945 commit e1de29b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pros/conductor/conductor.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,13 +383,13 @@ def new_project(self, path: str, no_default_libs: bool = False, **kwargs) -> Pro
if not no_default_libs:
libraries = self.early_access_libraries if proj.use_early_access and (kwargs.get("version", ">").startswith("4") or kwargs.get("version", ">").startswith(">")) else self.default_libraries

if kwargs['version'][0] == '>' or kwargs['version'][0] == '4':
libraries[proj.target].remove('okapilib')

if 'liblvgl' in libraries[proj.target] and kwargs['version'][0] != '>' and kwargs['version'][0] != '4':
libraries[proj.target].remove('liblvgl')

for library in libraries[proj.target]:
if kwargs['version'][0] == '>' or kwargs['version'][0] == '4':
if library == "okapilib":
continue
if kwargs['version'][0] != '>' and kwargs['version'][0] != '4':
if library == "liblvgl":
continue
try:
# remove kernel version so that latest template satisfying query is correctly selected
if 'version' in kwargs:
Expand Down

0 comments on commit e1de29b

Please sign in to comment.