Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Gepetto
dashboard
Commits
d731eb3f
Commit
d731eb3f
authored
Jul 11, 2018
by
Guilhem Saurel
Browse files
oops
parent
07ce94ba
Pipeline
#924
failed with stages
in 45 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
rainboard/models.py
View file @
d731eb3f
...
...
@@ -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
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment