fix what-broke to strip environment markers

The addition of environment markers broke what-broke, remove them
before processing it.

Change-Id: I4bad24431a6e037e149401f5e4e33130f6ecb07f
This commit is contained in:
Sean Dague 2015-07-10 09:35:36 -04:00
parent 7f192f6595
commit c7136bc2cd

View File

@ -72,6 +72,8 @@ def get_requirements():
# skip the comment or empty lines
if not line or line.startswith(('#', '\n')):
continue
# get rid of env markers, they are not relevant for our purposes.
line = line.split(';')[0]
reqs.append(_package_name(line))
return reqs