[Reproducible-commits] [diffoscope] 01/02: Specialize files that are given on the command line

Jérémy Bobbio lunar at moszumanska.debian.org
Fri Aug 21 08:32:11 UTC 2015


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

lunar pushed a commit to branch master
in repository diffoscope.

commit df78a44b187eb90033e58e405d771f58f77c79bc
Author: Jérémy Bobbio <lunar at debian.org>
Date:   Fri Aug 21 08:28:55 2015 +0000

    Specialize files that are given on the command line
    
    This will enable comparison of symlinks and devices.
    
    Closes: #796262
    Addresses: #796288
---
 diffoscope/comparators/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/diffoscope/comparators/__init__.py b/diffoscope/comparators/__init__.py
index 976f1b4..119b385 100644
--- a/diffoscope/comparators/__init__.py
+++ b/diffoscope/comparators/__init__.py
@@ -63,7 +63,7 @@ from diffoscope.comparators.zip import ZipFile
 def compare_root_paths(path1, path2):
     if os.path.isdir(path1) and os.path.isdir(path2):
         return compare_directories(path1, path2)
-    return compare_files(FilesystemFile(path1), FilesystemFile(path2))
+    return compare_files(specialize(FilesystemFile(path1)), specialize(FilesystemFile(path2)))
 
 
 def compare_files(file1, file2, source=None):

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



More information about the Reproducible-commits mailing list