From f72e7c5b1d156035ed12fab7af9c0bec529d82fb Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt Date: Sun, 8 Jul 2012 15:40:34 -0600 Subject: [PATCH] daklib/checks.py: make version check slightly more verbose --- daklib/checks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daklib/checks.py b/daklib/checks.py index f064a525..5c93ec3f 100644 --- a/daklib/checks.py +++ b/daklib/checks.py @@ -515,7 +515,7 @@ class VersionCheck(Check): source_version = upload.changes.source.dsc['Version'] v = self._highest_source_version(session, source_name, suite) if v is not None and version_compare(source_version, v) != expected_result: - raise Reject('Version check failed (source={0}, version={1}, suite={2})'.format(source_name, source_version, suite.suite_name)) + raise Reject('Version check failed (source={0}, version={1}, other-version={2}, suite={3})'.format(source_name, source_version, v, suite.suite_name)) for binary in upload.changes.binaries: binary_name = binary.control['Package'] @@ -523,7 +523,7 @@ class VersionCheck(Check): architecture = binary.control['Architecture'] v = self._highest_binary_version(session, binary_name, suite, architecture) if v is not None and version_compare(binary_version, v) != expected_result: - raise Reject('Version check failed (binary={0}, version={1}, suite={2})'.format(binary_name, binary_version, suite.suite_name)) + raise Reject('Version check failed (binary={0}, version={1}, other-version={2}, suite={3})'.format(binary_name, binary_version, v, suite.suite_name)) def per_suite_check(self, upload, suite): session = upload.session -- 2.39.5