diff --git a/pyporter b/pyporter index 31219852ea53bd35c0c85dd5c0287c11821eeca2..bd6badda8dae00db18b37e04aa872f803c825954 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): """