Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Fix removing default template #357

Merged
merged 1 commit into from
May 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading