提交 b0cd05d1 编写于 作者: G gaoruoshu 提交者: Gitee

fix bug: requires missing last letter

上级 3d0d80e4
......@@ -139,8 +139,11 @@ class PyPorter:
return
for r in rs:
idx = r.find(";")
mod = transform_module_name(r[:idx])
print("Requires:\t" + mod)
if r[idx] == ";":
mod = transform_module_name(r[:idx])
print("Requires:\t" + mod)
else:
print("Requires:\t" + transform_module_name(r))
def __get_buildarch(self):
"""
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册