Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
"""
Called to write/rewrite/update the repository metadata
"""
- return await asyncio.to_thread(self._write)
-
- def _write(self):
log.info("Writing repository %s..." % self)
key = None
files = [p.path for p in packages if os.path.exists(p.path)]
# Write repository metadata
- p.repo_compose(path=path, key=key, files=files)
+ await asyncio.to_thread(p.repo_compose, path=path, key=key, files=files)
# Mark the repository as read-only
os.chmod(t, 0o755)