Skip to content
Snippets Groups Projects
Commit 6ae98df8 authored by Chris Lamb's avatar Chris Lamb :eyes:
Browse files

Don't an exit code of 0 if we encounter with a file whose human-readable...

Don't an exit code of 0 if we encounter with a file whose human-readable metadata matches literal file contents. (Closes: Debian:#1004198)
parent 9ebba4b2
No related branches found
No related tags found
No related merge requests found
Pipeline #340902 failed
......@@ -76,6 +76,13 @@ def compare_root_paths(path1, path2):
if difference is None:
difference = Difference(file1.name, file2.name)
difference.add_details(meta)
if difference is None and type(file1) is not type(file2):
difference = Difference(file1.name, file2.name)
difference.add_comment(
"Types of files differ; human-readable metadata may match literal file contents."
)
return difference
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment