Skip to content

Commit

Permalink
tree-wide: fix multiple typos
Browse files Browse the repository at this point in the history
  • Loading branch information
liushuyu committed Dec 5, 2023
1 parent e24797a commit 4ea4619
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion acbs/resume.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def resume_build():
reassign_build_dir(resumed_packages)
if new_cursor != (state.cursor - 1):
logging.warning(
'Senario mismatch detected! Dependency resolution will be re-attempted.')
'Scenario mismatch detected! Dependency resolution will be re-attempted.')
resolved = builder.resolve_deps(resumed_packages, stage2)
logging.info(
'Dependencies resolved, {} packages in the queue'.format(len(resolved)))
Expand Down
4 changes: 2 additions & 2 deletions acbs/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,14 +209,14 @@ def invoke_autobuild(task: ACBSPackageInfo, build_dir: str, stage2: bool):
def human_time(full_seconds: float) -> str:
"""
Convert time span (in seconds) to more friendly format
:param seconds: Time span in seconds (decimal is acceptable)
:param full_seconds: Time span in seconds (decimal is acceptable)
"""
if full_seconds < 0:
return 'Download only'
out_str_tmp = '{}'.format(
datetime.timedelta(seconds=full_seconds))
out_str = out_str_tmp.replace(
':', (f'{ANSI_GREEN}:{ANSI_RST}'))
':', f'{ANSI_GREEN}:{ANSI_RST}')
return out_str


Expand Down

0 comments on commit 4ea4619

Please sign in to comment.