Skip to content

Commit

Permalink
Addressed style issues called out by the CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
john-r-graham committed Jan 17, 2025
1 parent 2597467 commit f4f7b56
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions lib/portage/package/ebuild/prepare_build_dirs.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,20 @@ def makedirs(dir_path):
build_env_home_dir = mysettings["HOME"]
# Sanity checks on above values.
if not os.path.exists(home_template_dir):
writemsg(f"FEATURES home-dir-template-copy enabled but specified Linux home directory {home_template_dir} does not exist.", noiselevel=-1)
writemsg(
f"FEATURES home-dir-template-copy enabled but specified Linux home directory {home_template_dir} does not exist.",
noiselevel=-1
)
return 1
if not os.path.exists(build_env_home_dir):
writemsg(f"FEATURES home-dir-template-copy enabled but build HOME directory {build_env_home_dir} does not exist.", noiselevel=-1)
writemsg(
f"FEATURES home-dir-template-copy enabled but build HOME directory {build_env_home_dir} does not exist.",
noiselevel=-1
)
return 1
shutil.copytree(home_template_dir, build_env_home_dir, symlinks=True, dirs_exist_ok=True)
shutil.copytree(
home_template_dir, build_env_home_dir, symlinks=True, dirs_exist_ok=True
)


def _adjust_perms_msg(settings, msg):
Expand Down

0 comments on commit f4f7b56

Please sign in to comment.