Skip to content

Commit f7a623a

Browse files
committed
Fix download location of unknown-version tzcode
Previously this dropped the tarball in the repository root.
1 parent 5494a6f commit f7a623a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

update.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,10 @@ def find_latest_version() -> str:
127127
assert re.match("\d{4}[a-z]$", version), version
128128

129129
target_dir = WORKING_DIR / version / "download"
130+
target_dir.mkdir(parents=True, exist_ok=True)
130131

131132
fobj.seek(0)
132-
with open(f"tzdata{version}.tar.gz", "wb") as f:
133+
with open(target_dir / f"tzdata{version}.tar.gz", "wb") as f:
133134
f.write(fobj.read())
134135

135136
return version

0 commit comments

Comments
 (0)