diff --git a/pyporter b/pyporter index 886230244d549b3d15da04ccb78a6412cbb429f7..31219852ea53bd35c0c85dd5c0287c11821eeca2 100755 --- a/pyporter +++ b/pyporter @@ -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): """