mirror of
https://github.com/bndr/pipreqs.git
synced 2025-06-06 03:25:21 +00:00
Make pipreqs not write duplicated lines to requirements.txt
This commit is contained in:
parent
96a76f58c0
commit
36efe7e219
@ -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
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user