Ignore --compare in the "Automatically generated" comment

This commit is contained in:
Michal Sojka 2024-09-26 23:31:48 +02:00
parent 33e6271b65
commit 2595123e12

View file

@ -449,6 +449,7 @@ def ros2nix(args):
arg arg
for arg in sys.argv[1:] for arg in sys.argv[1:]
if not (arg.endswith("package.xml") and os.path.isfile(arg)) if not (arg.endswith("package.xml") and os.path.isfile(arg))
and arg != "--compare"
] ]
) )
derivation_text = f"# Automatically generated by: {our_cmd_line}\n" derivation_text = f"# Automatically generated by: {our_cmd_line}\n"