Skip to content

Commit c79f554

Browse files
committed
docs: Be flexible in tarball names
The version of the embedded hwloc and libevent are parsed out from tarball names. Make the regex for the version slightly more flexible so that if there's a name change like a -ompi in the version, this doesn't break the regex. Signed-off-by: Brian Barrett <bbarrett@amazon.com>
1 parent 5098cc0 commit c79f554

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ def get_tarball_version(path, expr):
7878
prte_data = read_version_file(f"{ompi_top_srcdir}/3rd-party/prrte/VERSION")
7979

8080
hwloc_embedded_version = get_tarball_version(f"{ompi_top_srcdir}/3rd-party/",
81-
r"hwloc-(.*).tar")
81+
r"hwloc-([^-]+).*\.tar")
8282
event_embedded_version = get_tarball_version(f"{ompi_top_srcdir}/3rd-party/",
83-
r"libevent-(.*)-stable.tar")
83+
r"libevent-([^-]+).*\.tar")
8484

8585
# ---------------------------
8686

0 commit comments

Comments
 (0)