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
f5abfd3b
Commit
f5abfd3b
authored
May 14, 2018
by
Guilhem Saurel
Browse files
handling deleted robotpkg
parent
f04d94cb
Pipeline
#688
passed with stages
in 47 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
rainboard/models.py
View file @
f5abfd3b
...
...
@@ -556,6 +556,9 @@ class Robotpkg(NamedModel):
repo
.
remotes
.
origin
.
pull
()
cwd
=
path
/
self
.
category
/
self
.
name
if
not
cwd
.
is_dir
():
logger
.
warning
(
f
'deleted
{
self
}
:
{
self
.
delete
()
}
'
)
return
for
field
in
RPKG_FIELDS
:
cmd
=
[
'make'
,
'show-var'
,
f
'VARNAME=
{
field
}
'
]
self
.
__dict__
[
field
.
lower
()]
=
check_output
(
cmd
,
cwd
=
cwd
).
decode
().
strip
()
...
...
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