]> git.ipfire.org Git - pakfire.git/commitdiff
Print how long the dependency solving took.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 28 Oct 2012 08:56:41 +0000 (09:56 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 28 Oct 2012 08:56:41 +0000 (09:56 +0100)
python/pakfire/satsolver.py

index 1f13adeca1059ec58295d7e5c62d28b3beb0e889..1eadc07c839b2027a7d49346f552cedf5d33e240 100644 (file)
@@ -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