update_classic_status: recognise pythonhosted.org as python

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
Paul Eggleton 2018-10-31 16:22:29 +13:00
parent 08c979ac58
commit b05a24d41f

View File

@ -139,7 +139,7 @@ def main():
else: else:
if recipe.source_set.exists(): if recipe.source_set.exists():
source0 = recipe.source_set.first() source0 = recipe.source_set.first()
if 'pypi.' in source0.url: if 'pypi.' in source0.url or 'pythonhosted.org' in source0.url:
attempts = ['python3-%s' % sanepn, 'python-%s' % sanepn] attempts = ['python3-%s' % sanepn, 'python-%s' % sanepn]
if sanepn.startswith('py'): if sanepn.startswith('py'):
attempts.extend(['python3-%s' % sanepn[2:], 'python-%s' % sanepn[2:]]) attempts.extend(['python3-%s' % sanepn[2:], 'python-%s' % sanepn[2:]])