Skip to content

Commit aa2e1a9

Browse files
committed
Fix pre-commit
1 parent c0c624d commit aa2e1a9

File tree

1 file changed

+25
-3
lines changed

1 file changed

+25
-3
lines changed

relenv/build/linux.py

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,9 +380,31 @@ def build_python(env, dirs, logfp):
380380

381381
# Patch libexpat
382382
bash_refresh = pathlib.Path(dirs.source) / "Modules" / "expat" / "refresh.sh"
383-
runcmd(["sed", "-i", 's/^expected_libexpat_tag.*$\expected_libexpat_tag="R_2_7_3"', bash_refresh])
384-
runcmd(["sed", "-i", 's/^expected_libexpat_ver.*$\expected_libexpat_version="2.7.3"', bash_refresh])
385-
runcmd(["sed", "-i", 's/^expected_libexpat_sha.*$\expected_libexpat_sha256="821ac9710d2c073eaf13e1b1895a9c9aa66c1157a99635c639fbff65cdbdd732"', bash_refresh])
383+
runcmd(
384+
[
385+
"sed",
386+
"-i",
387+
's/^expected_libexpat_tag.*$/expected_libexpat_tag="R_2_7_3"',
388+
bash_refresh,
389+
]
390+
)
391+
runcmd(
392+
[
393+
"sed",
394+
"-i",
395+
's/^expected_libexpat_ver.*$/expected_libexpat_version="2.7.3"',
396+
bash_refresh,
397+
]
398+
)
399+
expat_hash = "821ac9710d2c073eaf13e1b1895a9c9aa66c1157a99635c639fbff65cdbdd732"
400+
runcmd(
401+
[
402+
"sed",
403+
"-i",
404+
f's/^expected_libexpat_sha.*$/expected_libexpat_sha256="{expat_hash}"',
405+
bash_refresh,
406+
]
407+
)
386408
run_cmd([bash_refresh])
387409

388410
print("#" * 80)

0 commit comments

Comments
 (0)