diff options
author | Ben Hutchings <ben.hutchings@codethink.co.uk> | 2020-09-10 16:07:44 +0100 |
---|---|---|
committer | Ben Hutchings <ben.hutchings@codethink.co.uk> | 2020-09-10 16:09:49 +0100 |
commit | 1fa0571d0658f6196d31402e63457735e5fcf291 (patch) | |
tree | ffc057b7903b3e56bdaceb2d842ce8f2cbbd2390 /scripts/check-lorry-urls | |
parent | d11e51861adc2dcd982007ec1ce6b4e3231424bd (diff) | |
download | lorries-bwh/fix-check-url-hg-messages.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-x | scripts/check-lorry-urls | 4 |
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]) |