~edwargix/git.sr.ht

9d26151dfe7f8402a672e80dbf1e42f8262e275c — Vlad-Stefan Harbuz 2 years ago 1272ef2
licenses: check that LICENSES/ is directory

Signed-off-by: Vlad-Stefan Harbuz <vlad@vladh.net>
1 files changed, 1 insertions(+), 1 deletions(-)

M gitsrht/blueprints/repo.py
M gitsrht/blueprints/repo.py => gitsrht/blueprints/repo.py +1 -1
@@ 50,7 50,7 @@ def get_license_info_for_tip(tip):
                break

        licenses = []
        if 'LICENSES' in tip.tree:
        if 'LICENSES' in tip.tree and isinstance(tip.tree['LICENSES'], pygit2.Tree):
            for o in tip.tree['LICENSES']:
                license_id = os.path.splitext(o.name)[0]
                if license_id in SPDX_LICENSES: