From b05a24d41f5cfcca7ab2982b952932b98b78f7b7 Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Wed, 31 Oct 2018 16:22:29 +1300 Subject: [PATCH] update_classic_status: recognise pythonhosted.org as python Signed-off-by: Paul Eggleton --- layerindex/tools/update_classic_status.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layerindex/tools/update_classic_status.py b/layerindex/tools/update_classic_status.py index d8cab48..020085e 100755 --- a/layerindex/tools/update_classic_status.py +++ b/layerindex/tools/update_classic_status.py @@ -139,7 +139,7 @@ def main(): else: if recipe.source_set.exists(): 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] if sanepn.startswith('py'): attempts.extend(['python3-%s' % sanepn[2:], 'python-%s' % sanepn[2:]])