Skip to content

Commit

Permalink
fixup! change --copyright-style to --copyright-prefix fsfe#973
Browse files Browse the repository at this point in the history
Signed-off-by: Carmen Bianca BAKKER <carmenbianca@fsfe.org>
  • Loading branch information
carmenbianca committed Jul 1, 2024
1 parent dbfabbd commit 1402df4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/reuse/_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,14 +319,14 @@ def merge_copyright_lines(copyright_lines: Set[str]) -> Set[str]:
]

# Get the most common prefix.
prefix = str(
most_common = str(
Counter([item["prefix"] for item in copyright_list]).most_common(1)[
0
][0]
)
prefix = "spdx"
for key, value in _COPYRIGHT_PREFIXES.items():
if prefix == value:
if most_common == value:
prefix = key
break

Expand Down

0 comments on commit 1402df4

Please sign in to comment.