Commit 6ae98df8 authored by Chris Lamb's avatar Chris Lamb 👀
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
Loading
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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