Omit the "other-requirements.txt"

The plugin needs to omit the "other" requirements files when
indexing python packages.

Change-Id: I52600165c24031d499c604044c30fb403ec51741
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This commit is contained in:
Kevin Carter 2016-07-18 13:44:51 -05:00
parent 7f50658956
commit 991380305f
No known key found for this signature in database
GPG Key ID: 69FEFFC5E2D9273F
1 changed files with 2 additions and 1 deletions

View File

@ -520,8 +520,9 @@ class DependencyFileProcessor(object):
return_list.remove(file_name)
return_list.insert(index, file_name)
else:
print return_list
for file_name in return_list:
if file_name.endswith('other-requirements.txt'):
continue
with open(file_name, 'r') as f:
packages = [
i.split()[0] for i in f.read().splitlines()