From: Ansgar Burchardt Date: Tue, 18 Sep 2012 19:56:37 +0000 (+0200) Subject: Don't include stacktrace for hash mismatches. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d3e2034c20043bd6738b2c50e858a2e1fa149f7;p=dak Don't include stacktrace for hash mismatches. --- diff --git a/daklib/checks.py b/daklib/checks.py index 72980262..f073d52f 100644 --- a/daklib/checks.py +++ b/daklib/checks.py @@ -30,6 +30,7 @@ from daklib.regexes import * from daklib.textutils import fix_maintainer, ParseMaintError import daklib.lintian as lintian import daklib.utils as utils +from daklib.upload import InvalidHashException import apt_inst import apt_pkg @@ -183,6 +184,8 @@ class HashesCheck(Check): 'Perhaps you need to include it in your upload?' .format(what, os.path.basename(e.filename))) raise + except InvalidHashException as e: + raise Reject('{0}: {1}'.format(what, unicode(e))) class ExternalHashesCheck(Check): """Checks hashes in .changes and .dsc against an external database."""