Skip to content

Commit

Permalink
Issue 6359 - Fix incorrect License tag
Browse files Browse the repository at this point in the history
Description:
License tag generated by bundle-rust-npm.py had misplaced 'AND' for
the default license.

Relates: #6359
  • Loading branch information
vashirov committed Dec 16, 2024
1 parent bc0c543 commit 24e2dbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rpm/bundle-rust-npm.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,11 @@ def replace_license(spec_file: str, license_string: str):
for line in contents:
if line.startswith("License: "):
if args.fix_it:
result.append(f"License: GPL-3.0-or-later AND WITH GPL-3.0-389-ds-base-exception {license_string}\n")
result.append(f"License: GPL-3.0-or-later WITH GPL-3.0-389-ds-base-exception AND {license_string}\n")
else:
result.append("# IMPORTANT - Check if it looks right. Additionally, "
"compare with the original line. Then, remove this comment and # FIXME - part.\n")
result.append(f"# FIXME - License: GPL-3.0-or-later AND WITH GPL-3.0-389-ds-base-exception {license_string}\n")
result.append(f"# FIXME - License: GPL-3.0-or-later WITH GPL-3.0-389-ds-base-exception AND {license_string}\n")
else:
result.append(line)
with open(spec_file, "w") as file:
Expand Down

0 comments on commit 24e2dbb

Please sign in to comment.