Skip to content
Snippets Groups Projects
Commit c8e44a45 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[ci] Fix missing obj in bootstrap

parent e0430c34
No related branches found
No related tags found
No related merge requests found
Pipeline #25993 failed
...@@ -52,6 +52,14 @@ import logging ...@@ -52,6 +52,14 @@ import logging
logger = logging.getLogger('bootstrap') logger = logging.getLogger('bootstrap')
_INTERVALS = (
('weeks', 604800), # 60 * 60 * 24 * 7
('days', 86400), # 60 * 60 * 24
('hours', 3600), # 60 * 60
('minutes', 60),
('seconds', 1),
)
def human_time(seconds, granularity=2): def human_time(seconds, granularity=2):
'''Returns a human readable time string like "1 day, 2 hours"''' '''Returns a human readable time string like "1 day, 2 hours"'''
...@@ -110,7 +118,7 @@ def run_cmdline(cmd, env=None): ...@@ -110,7 +118,7 @@ def run_cmdline(cmd, env=None):
env=env) env=env)
chunk_size = 1 << 13 chunk_size = 1 << 13
lineno = 0 lineno = 1
for chunk in iter(lambda: p.stdout.read(chunk_size), b''): for chunk in iter(lambda: p.stdout.read(chunk_size), b''):
decoded = chunk.decode() decoded = chunk.decode()
while '\n' in decoded: while '\n' in decoded:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment