]> git.ipfire.org Git - pakfire.git/commitdiff
client: Drop dependency on format_time from ui
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 5 Jun 2021 13:38:52 +0000 (13:38 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 5 Jun 2021 13:38:52 +0000 (13:38 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/client.py

index 8ba56c05424c2afc52cf6cfd24b1028b2758a059..fcfb575871cf998cd1955845ce23a224f714b897 100644 (file)
@@ -21,8 +21,6 @@
 
 import logging
 
-from .ui.helpers import format_time
-
 from . import config
 from . import hub
 
@@ -277,7 +275,7 @@ class Job(_ClientObject):
                        s.append(_("on %s") % self.builder)
 
                elif self.is_finished():
-                       s.append(_("in %s") % format_time(self.duration))
+                       s.append(_("in %s") % ("%02d:%02d" % (self.duration // 60, self.duration % 60)))
 
                return " ".join(s)