From 5cc1d1da0c4da1815b7c31a52a768ebae0327033 Mon Sep 17 00:00:00 2001 From: Olie Ayre Date: Tue, 4 Feb 2020 16:34:12 +0100 Subject: [PATCH] Add UK spellings of "licence". Added "LICENCE", "licence", "LICENCE.txt", "licence.txt", "LICENCE.md", "licence.md", and "LICENCES" as valid licence files when determining whether a repository has a licence (to show the warning banner about adding a licence). --- gitsrht/blueprints/repo.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gitsrht/blueprints/repo.py b/gitsrht/blueprints/repo.py index 977050c..b4045bd 100644 --- a/gitsrht/blueprints/repo.py +++ b/gitsrht/blueprints/repo.py @@ -105,12 +105,15 @@ def summary(owner, repo): license = False for path in [ - "LICENSE", "COPYING", + "LICENSE", "LICENCE", "COPYING", "LICENSE.txt", "license.txt", + "LICENCE.txt", "licence.txt", "COPYING.txt", "copying.txt", "LICENSE.md", "license.md", + "LICENCE.md", "licence.md", "COPYING.md", "copying.md", "LICENSES", "licenses", + "LICENCES", "licences", ]: if path in tip.tree: license = True -- 2.38.4