From: Daniel Martí Date: Tue, 26 Aug 2014 11:32:44 +0000 (+0200) Subject: lint: warn about redundant links too X-Git-Tag: 0.3.0~74 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=298934afa5650e6ed026f46d1425359fa6e53f70;p=fdroidserver.git lint: warn about redundant links too --- 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():