diff options
Diffstat (limited to 'MgaRepo/binrepo.py')
-rw-r--r-- | MgaRepo/binrepo.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/MgaRepo/binrepo.py b/MgaRepo/binrepo.py index 13e2c45..ee429f6 100644 --- a/MgaRepo/binrepo.py +++ b/MgaRepo/binrepo.py @@ -34,6 +34,8 @@ def is_binary(path): st = os.stat(path) if st[stat.ST_SIZE] >= maxsize: return True + if open(path).read(0x10000).find('\0') >= 0: + return True return False def find_binaries(paths): |