Skip to content

Commit 1dbc7ce

Browse files
committed
Fixed issue with sdist recompression.
Fixes #12 Signed-off-by: Pedro Algarvio <[email protected]>
1 parent 6c42503 commit 1dbc7ce

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

changelog/12.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fixed issue with ``sdist`` recompression for reproducible packages not iterating though subdirectories contents.

noxfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,8 +491,8 @@ def recompress(self, targz):
491491
with tarfile.open(d_tar, "w|") as wfile:
492492
with tarfile.open(targz, "r:gz") as rfile:
493493
rfile.extractall(d_src)
494-
extracted_dir = list(pathlib.Path(d_src).glob("*"))[0]
495-
for name in sorted(extracted_dir.iterdir()):
494+
extracted_dir = next(pathlib.Path(d_src).iterdir())
495+
for name in sorted(extracted_dir.rglob("*")):
496496
wfile.add(
497497
str(name),
498498
filter=self.tar_reset,

0 commit comments

Comments
 (0)