Skip to content

Commit

Permalink
fixup! WIP: Nested REUSE.tomls
Browse files Browse the repository at this point in the history
Signed-off-by: Carmen Bianca BAKKER <[email protected]>
  • Loading branch information
carmenbianca committed Dec 22, 2023
1 parent 0482563 commit 41a7f0b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/reuse/global_licensing.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ def find_annotations_item(self, path: StrPath) -> Optional[AnnotationsItem]:
def reuse_info_of(
self, path: StrPath
) -> Dict[GlobalPrecedence, List[ReuseInfo]]:
path = str(path)
path = PurePath(path).as_posix()
item = self.find_annotations_item(path)
if item:
return {
Expand Down Expand Up @@ -457,7 +457,7 @@ def from_file(cls, path: StrPath) -> "GlobalLicensing":
def reuse_info_of(
self, path: StrPath
) -> Dict[GlobalPrecedence, List[ReuseInfo]]:
path = PurePath(path)
path = PurePath(path).as_posix()

toml_items: List[
Tuple[ReuseTOML, AnnotationsItem]
Expand All @@ -482,7 +482,7 @@ def reuse_info_of(
# were relative to the directory of the respective
# REUSE.toml.
info.copy(
path=str(path),
path=path,
source_path=str(
PurePath(toml.source).relative_to(self.source)
),
Expand Down

0 comments on commit 41a7f0b

Please sign in to comment.