Split up repos by arches, always add already-built packages to repo file again, don't use repo-add --new, ...

Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
This commit is contained in:
InsanePrawn 2021-10-04 20:16:27 +02:00
parent 1ba4dcfaec
commit 0b2caa02af
6 changed files with 155 additions and 96 deletions

View file

@ -280,6 +280,9 @@ class ConfigStateHolder:
paths = self.file['paths']
return resolve_path_template(paths[path_name], paths)
def get_package_dir(self, arch: str):
return os.path.join(self.get_path('packages'), arch)
def dump(self) -> str:
dump_toml(self.file)