From 298934afa5650e6ed026f46d1425359fa6e53f70 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Mart=C3=AD?= Date: Tue, 26 Aug 2014 13:32:44 +0200 Subject: [PATCH] lint: warn about redundant links too --- fdroidserver/lint.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/fdroidserver/lint.py b/fdroidserver/lint.py index 9c0dcfdc..98482be0 100644 --- a/fdroidserver/lint.py +++ b/fdroidserver/lint.py @@ -185,7 +185,12 @@ def main(): warn("Summary of length %s is over the %i char limit" % ( summ_chars, config['char_limits']['Summary'])) - # Redundant summaries or descriptions + # Redundant info + if app['Web Site'] and app['Source Code']: + if app['Web Site'].lower() == app['Source Code'].lower(): + warn("Website '%s' is just the app's source code link" % app['Web Site']) + app['Web Site'] = '' + name = app['Name'] or app['Auto Name'] if app['Summary'] and name: if app['Summary'].lower() == name.lower(): -- 2.30.2