Remove *.txt file content from py_pkgs lookup output
Some roles may have requirements.txt files. These are not files we want to take into account when compiling requirements for the repo build, so we remove them. This has specifically become an issue due to ceph-ansible carrying conflicting requirements to OpenStack's. Change-Id: I0fd29dc4dcb008689f36d947bc971643dab8feec
This commit is contained in:
parent
76bec48bc9
commit
054e504036
|
@ -633,8 +633,7 @@ class DependencyFileProcessor(object):
|
|||
elif file_name.endswith('bindep.txt'):
|
||||
continue
|
||||
elif 'roles' in file_name:
|
||||
_role_name = file_name.split('roles%s' % os.sep)[-1]
|
||||
role_name = _role_name.split(os.sep)[0]
|
||||
continue
|
||||
else:
|
||||
role_name = 'default'
|
||||
with open(file_name, 'r') as f:
|
||||
|
|
Loading…
Reference in New Issue