Commit d731eb3f authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

oops

parent 07ce94ba
Pipeline #924 failed with stages
in 45 seconds
......@@ -222,8 +222,8 @@ class Project(Links, NamedModel, TimeStampedModel):
for dependency in re.findall(r'ADD_[^ ]+_DEPENDENCY\s*\(["\']([^ ]+).*["\']\)', content, re.I):
project = Project.objects.filter(slug=dependency)
if project.exists():
dependency, created = Dependency.objects.get_or_create(project=self, library=dependency)
if dependency.cmake:
dependency, _ = Dependency.objects.get_or_create(project=self, library=project.first())
if not dependency.cmake:
dependency.cmake = True
dependency.save()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment