From 4ea46198b24975df8e075a232ca7584fb9be145c Mon Sep 17 00:00:00 2001 From: liushuyu Date: Mon, 4 Dec 2023 20:48:50 -0700 Subject: [PATCH] tree-wide: fix multiple typos --- acbs/resume.py | 2 +- acbs/utils.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/acbs/resume.py b/acbs/resume.py index 76db0cf..0b1dd1a 100644 --- a/acbs/resume.py +++ b/acbs/resume.py @@ -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))) diff --git a/acbs/utils.py b/acbs/utils.py index 1304c1e..d494296 100644 --- a/acbs/utils.py +++ b/acbs/utils.py @@ -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