##// END OF EJS Templates
Fixed file comparison in different-size chunks
neko259 -
r1858:0077bddc default
parent child Browse files
Show More
@@ -82,8 +82,14 b' class AttachmentManager(models.Manager):'
82 chunk2ended = True
82 chunk2ended = True
83
83
84 if chunk1ended and chunk2ended:
84 if chunk1ended and chunk2ended:
85 # Same size chunksm checked for equality previously
86 break
87 elif chunk1ended or chunk2ended:
88 # Different size chunks, not equal
89 equal = False
85 break
90 break
86 elif chunk1[position1] != chunk2[position2]:
91 elif chunk1[position1] != chunk2[position2]:
92 # Different bytes, not equal
87 equal = False
93 equal = False
88 break
94 break
89 else:
95 else:
General Comments 0
You need to be logged in to leave comments. Login now