Make pipreqs not write duplicated lines to requirements.txt

This commit is contained in:
Dmitry Pribysh 2016-02-10 20:48:58 +03:00
parent 96a76f58c0
commit 36efe7e219

View File

@ -182,7 +182,8 @@ def get_pkg_names(pkgs):
if item[0] == pkg:
toappend = item[1]
break
result.append(toappend)
if toappend not in result:
result.append(toappend)
return result