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

handling deleted robotpkg

parent f04d94cb
Pipeline #688 passed with stages
in 47 seconds
......@@ -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()
......
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