Skip to content

Commit

Permalink
bugfix and improve package-requires mismatch/incompatibility check
Browse files Browse the repository at this point in the history
  • Loading branch information
riscy committed Aug 13, 2023
1 parent df77362 commit 83407af
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions melpazoid/melpazoid.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,10 +554,14 @@ def _check_package_requires(recipe: str, elisp_dir: str) -> None:
main_requirements = requirements(files, recipe)
for file in files:
file_requirements = requirements([file])
if file_requirements and file_requirements > main_requirements:
if file_requirements and file_requirements - main_requirements:
_fail(
f"- Package-Requires mismatch between {os.path.basename(file)} and "
f"{os.path.basename(main_file)}!"
f"- Package-Requires incompatibility between {os.path.basename(file)} and "
f"{os.path.basename(main_file)}"
)
print(
f" - {os.path.basename(main_file)} does not have: "
+ ', '.join(sorted(file_requirements - main_requirements))
)


Expand Down

0 comments on commit 83407af

Please sign in to comment.