From 2d3e2034c20043bd6738b2c50e858a2e1fa149f7 Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt Date: Tue, 18 Sep 2012 21:56:37 +0200 Subject: [PATCH] Don't include stacktrace for hash mismatches. --- daklib/checks.py | 3 +++ 1 file changed, 3 insertions(+) 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.""" -- 2.39.2