From 8a24de922634bccdbd1d8f7885da17a844739bbd Mon Sep 17 00:00:00 2001 From: gaoruoshu Date: Mon, 3 Aug 2020 10:50:59 +0800 Subject: [PATCH] update --- pyporter | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/pyporter b/pyporter index 3121985..bd6badd 100755 --- a/pyporter +++ b/pyporter @@ -139,11 +139,9 @@ class PyPorter: return for r in rs: idx = r.find(";") - if r[idx] == ";": - mod = transform_module_name(r[:idx]) - print("Requires:\t" + mod) - else: - print("Requires:\t" + transform_module_name(r)) + if idx != -1: + r = r[:idx] + print("Requires:\t" + transform_module_name(r)) def __get_buildarch(self): """ -- GitLab