summaryrefslogtreecommitdiff
path: root/scripts/check-lorry-urls
diff options
context:
space:
mode:
authorBen Hutchings <ben.hutchings@codethink.co.uk>2020-09-10 16:07:44 +0100
committerBen Hutchings <ben.hutchings@codethink.co.uk>2020-09-10 16:09:49 +0100
commit1fa0571d0658f6196d31402e63457735e5fcf291 (patch)
treeffc057b7903b3e56bdaceb2d842ce8f2cbbd2390 /scripts/check-lorry-urls
parentd11e51861adc2dcd982007ec1ce6b4e3231424bd (diff)
downloadlorries-1fa0571d0658f6196d31402e63457735e5fcf291.tar.gz
scripts/check-lorry-urls: Don't report 'OK' after 'no Mercurial server ...'bwh/fix-check-url-hg-messages
Move the info('OK') call so it's only reported if the Mercurial capability check succeeds.
Diffstat (limited to 'scripts/check-lorry-urls')
-rwxr-xr-xscripts/check-lorry-urls4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/check-lorry-urls b/scripts/check-lorry-urls
index 94d659c..0829684 100755
--- a/scripts/check-lorry-urls
+++ b/scripts/check-lorry-urls
@@ -102,10 +102,10 @@ def check_file(filename):
if result.info().get('Content-Type') \
!= 'application/mercurial-0.1':
error('no Mercurial server support detected')
+ else:
+ info('OK')
except (urllib.error.URLError, http.client.HTTPException) as e:
error(str(e))
- else:
- info('OK')
elif upstream_type == 'svn':
try_command(['svn', 'info', '--non-interactive', upstream_url])