Skip to content

Commit d3e2de7

Browse files
committed
Fixing broken filenames in apt repo
1 parent e5e05a8 commit d3e2de7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/repopulator/apt.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ def add_package(self, path: str | os.PathLike[str]) -> AptPackage:
442442
"""
443443

444444
path = path_from_pathlike(path)
445-
package = AptPackage._load(path, path.name)
445+
package = AptPackage._load(path, 'pool/' + path.name)
446446
idx = lower_bound(self.__packages, package, lambda x, y: x.repo_filename < y.repo_filename)
447447
if idx < len(self.__packages) and self.__packages[idx].repo_filename == package.repo_filename:
448448
raise ValueError('Duplicate package')
@@ -542,6 +542,6 @@ def export(self, root: str | os.PathLike[str], signer: PgpSigner, now: Optional[
542542
shutil.rmtree(pool)
543543
pool.mkdir(parents=True)
544544
for package in self.__packages:
545-
dest = pool / package.repo_filename
545+
dest = root / package.repo_filename
546546
shutil.copy2(package.src_path, dest)
547547

0 commit comments

Comments
 (0)