diff --git a/apkdiff/apkdiff.py b/apkdiff/apkdiff.py index 82d6b474c6..4dbb253994 100755 --- a/apkdiff/apkdiff.py +++ b/apkdiff/apkdiff.py @@ -61,7 +61,7 @@ class ApkDiff: sourceChunk = sourceFile.read(1024) destinationChunk = destinationFile.read(1024) - while sourceChunk != "" and destinationChunk != "": + while sourceChunk != "" or destinationChunk != "": if sourceChunk != destinationChunk: return False