From: Michael Tremer Date: Sun, 28 Oct 2012 08:56:41 +0000 (+0100) Subject: Print how long the dependency solving took. X-Git-Tag: 0.9.24~42 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6a66129dd6348c5312dc503ef5acb4a62637690b;p=pakfire.git Print how long the dependency solving took. --- diff --git a/python/pakfire/satsolver.py b/python/pakfire/satsolver.py index 1f13adeca..1eadc07c8 100644 --- a/python/pakfire/satsolver.py +++ b/python/pakfire/satsolver.py @@ -314,9 +314,9 @@ class Solver(object): # Save the amount of time that was needed to solve the request. self.time = time.time() - start_time - self.logger.debug("Solver status: %s (%.2f ms)" % (self.status, self.time / 1000)) - - if self.status is False: + if self.status: + self.logger.info(_("Dependency solving finished in %.2f ms") % (self.time / 1000)) + else: raise DependencyError, self.get_problem_string() @property