Skip to content

Commit

Permalink
ebuild: Quote crate name in warning
Browse files Browse the repository at this point in the history
Signed-off-by: Michał Górny <mgorny@gentoo.org>
  • Loading branch information
mgorny committed Jan 29, 2024
1 parent 183fccc commit ae3ce8b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pycargoebuild/ebuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,13 @@ def get_license_from_crate(crate: Crate,
tarf, workspace_toml) # type: ignore
if crate_metadata.license_file is not None:
logging.warning(
f"Crate {filename} (in {base_dir}) uses license-file="
f"{crate_metadata.license_file!r}, please inspect "
"the license manually and add it *separately* from crate "
"licenses")
f"Crate {filename!r} (in {str(base_dir)!r}) uses "
f"license-file={crate_metadata.license_file!r}, please "
"inspect the license manually and add it *separately* "
"from crate licenses")
elif crate_metadata.license is None:
logging.warning(
f"Crate {filename} (in {base_dir}, "
f"Crate {filename!r} (in {str(base_dir)!r}, "
f"name={crate_metadata.name!r}) does not specify "
"a license!")
return crate_metadata.license
Expand Down

0 comments on commit ae3ce8b

Please sign in to comment.