Skip to content

Commit 1b57c4c

Browse files
committed
Resolve .so links with .gz suffix
1 parent ca5e7b2 commit 1b57c4c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

archmanweb/models.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ def resolve_so_link(self):
167167
# eliminate the '.so' macro
168168
if re.fullmatch(r"^\.so [A-Za-z0-9@._+\-:\[\]\/]+\s*$", stripped):
169169
path = stripped.split()[1]
170+
if path.endswith('.gz'):
171+
path = path[:-3]
170172
pp = PurePath(path)
171173
target_name = pp.stem
172174
target_section = pp.suffix[1:] # strip the dot

0 commit comments

Comments
 (0)