use generic packages tree for all repos

This commit is contained in:
2025-07-30 16:59:35 +03:00
parent ea799e402d
commit 2aca711768
3 changed files with 3 additions and 3 deletions

View File

@ -95,7 +95,6 @@ class TreeMigrate(Handler):
"""
# we don't care about devtools chroot
for attribute in (
RepositoryPaths.archive,
RepositoryPaths.packages,
RepositoryPaths.pacman,
RepositoryPaths.repository,

View File

@ -52,7 +52,7 @@ def migrate_data(connection: Connection, configuration: Configuration) -> None:
# create archive directory if required
if not paths.archive.is_dir():
with paths.preserve_owner(paths.root / "archive"):
with paths.preserve_owner(paths.archive):
paths.archive.mkdir(mode=0o755, parents=True)
move_packages(paths, pacman)

View File

@ -93,7 +93,7 @@ class RepositoryPaths(LazyLogging):
Returns:
Path: archive directory root
"""
return self.root / "archive" / self._suffix
return self.root / "archive"
@property
def build_root(self) -> Path:
@ -309,6 +309,7 @@ class RepositoryPaths(LazyLogging):
path = path or self.root
def walk(root: Path) -> Generator[Path, None, None]:
yield root
if not root.exists():
return