[Reproducible-builds] Bug#796262: Breaks on dangling symlinks
Chris Lamb
lamby at debian.org
Thu Aug 20 21:42:00 UTC 2015
Source: diffoscope
Version: 30
User: reproducible-builds at lists.alioth.debian.org
X-Debbugs-Cc: reproducible-builds at lists.alioth.debian.org
diffoscope breaks on dangling symlinks:
% ls
% ln -sf a1 b1
% ln -sf a2 b2
% diffoscope.py b1 b2
Traceback (most recent call last):
File "/home/lamby/git/debian/reproducible/diffoscope/diffoscope.py",
line 117, in <module>
sys.exit(main())
File "/home/lamby/git/debian/reproducible/diffoscope/diffoscope.py",
line 102, in main
parsed_args.file1, parsed_args.file2)
File
"/home/lamby/git/debian/reproducible/diffoscope/diffoscope/comparators/__init__.py",
line 66, in compare_root_paths
return compare_files(FilesystemFile(path1), FilesystemFile(path2))
File
"/home/lamby/git/debian/reproducible/diffoscope/diffoscope/comparators/__init__.py",
line 72, in compare_files
if file1.has_same_content_as(file2):
File
"/home/lamby/git/debian/reproducible/diffoscope/diffoscope/__init__.py",
line 89, in tool_check
return original_function(*args, **kwargs)
File
"/home/lamby/git/debian/reproducible/diffoscope/diffoscope/comparators/binary.py",
line 75, in wrapper
return original_method(self, other, *args, **kwargs)
File
"/home/lamby/git/debian/reproducible/diffoscope/diffoscope/comparators/binary.py",
line 156, in has_same_content_as
my_size = os.path.getsize(self.path)
File "/usr/lib/python2.7/genericpath.py", line 49, in getsize
return os.stat(filename).st_size
OSError: [Errno 2] No such file or directory: 'b1'
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
More information about the Reproducible-builds
mailing list