[diffoscope] 03/09: Keep filelist sorted for deterministic output, and add newline at the end.

Maria Glukhova siamezzze-guest at moszumanska.debian.org
Mon Feb 13 20:39:59 CET 2017


This is an automated email from the git hooks/post-receive script.

siamezzze-guest pushed a commit to branch siamezzze/containers
in repository diffoscope.

commit 6edd7df855721ce31745307388f011c445f16d1e
Author: Maria Glukhova <siamezzze at gmail.com>
Date:   Fri Jan 20 23:06:41 2017 +0200

    Keep filelist sorted for deterministic output, and add newline at the end.
---
 diffoscope/comparators/utils/compare.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/diffoscope/comparators/utils/compare.py b/diffoscope/comparators/utils/compare.py
index 4293fdd..c35c70c 100644
--- a/diffoscope/comparators/utils/compare.py
+++ b/diffoscope/comparators/utils/compare.py
@@ -79,8 +79,8 @@ def compare_containers(file1, file2, source=None):
         source="container type"
     )])
     details.extend([Difference.from_text(
-        "\n".join(container1.get_member_names()),
-        "\n".join(container2.get_member_names()),
+        "\n".join(sorted(container1.get_member_names())) + "\n",
+        "\n".join(sorted(container2.get_member_names())) + "\n",
         file1.name,
         file2.name,
         source="file list"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git


More information about the diffoscope mailing list