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):
cwd = path / self.category /
if not cwd.is_dir():
logger.warning(f'deleted {self}: {self.delete()}')
for field in RPKG_FIELDS:
cmd = ['make', 'show-var', f'VARNAME={field}']
self.__dict__[field.lower()] = check_output(cmd, cwd=cwd).decode().strip()
Supports Markdown
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