Skip to content

Commit

Permalink
Merge pull request #428 from shubhbapna/rename-previous-bootstrap-option
Browse files Browse the repository at this point in the history
fix: rename previous bootstrap option
  • Loading branch information
mergify[bot] committed Sep 17, 2024
2 parents d9908c2 + fa59965 commit d80da7c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/fromager/commands/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ def _get_requirements_from_args(
)
@click.option(
"-p",
"--previous-bootstrap",
"prev_graph_file",
"--previous-bootstrap-file",
"previous_bootstrap_file",
type=clickext.ClickPath(),
help="graph file produced from a previous bootstrap",
)
Expand All @@ -72,7 +72,7 @@ def _get_requirements_from_args(
def bootstrap(
wkctx: context.WorkContext,
requirements_files: list[pathlib.Path],
prev_graph_file: pathlib.Path | None,
previous_bootstrap_file: pathlib.Path | None,
toplevel: list[str],
) -> None:
"""Compute and build the dependencies of a set of requirements recursively
Expand All @@ -88,9 +88,9 @@ def bootstrap(
)
logger.info("bootstrapping %r variant of %s", wkctx.variant, to_build)

if prev_graph_file:
logger.info("reading previous bootstrap data from %s", prev_graph_file)
prev_graph = dependency_graph.DependencyGraph.from_file(prev_graph_file)
if previous_bootstrap_file:
logger.info("reading previous bootstrap data from %s", previous_bootstrap_file)
prev_graph = dependency_graph.DependencyGraph.from_file(previous_bootstrap_file)
else:
logger.info("no previous bootstrap data")
prev_graph = None
Expand Down

0 comments on commit d80da7c

Please sign in to comment.