mirror of
https://github.com/ansible/awx.git
synced 2026-05-23 08:37:48 -02:30
Update license test to work with http(s) urls in requirements files
This commit is contained in:
@@ -57,7 +57,10 @@ def test_python_and_js_licenses():
|
|||||||
if version.startswith('=='):
|
if version.startswith('=='):
|
||||||
version = version[2:]
|
version = version[2:]
|
||||||
if reqt.link:
|
if reqt.link:
|
||||||
(name, version) = reqt.link.filename.split('@', 1)
|
if str(reqt.link).startswith(('http://', 'https://')):
|
||||||
|
(name, version) = str(reqt.req).split('==', 1)
|
||||||
|
else:
|
||||||
|
(name, version) = reqt.link.filename.split('@', 1)
|
||||||
if name.endswith('.git'):
|
if name.endswith('.git'):
|
||||||
name = name[:-4]
|
name = name[:-4]
|
||||||
if name == 'receptor':
|
if name == 'receptor':
|
||||||
|
|||||||
Reference in New Issue
Block a user