fix bug including media files

'name' is not the full path, so it'll always fail common.is_repo_file()'s
os.path.isfile() check.

Introduced in 56d51fcd6b
This commit is contained in:
Hans-Christoph Steiner 2016-12-08 19:11:36 +01:00
parent f06e336904
commit 5214889bbd

View file

@ -549,7 +549,7 @@ def scan_repo_files(apkcache, repodir, knownapks, use_date_from_file=False):
if file_extension == 'apk' or file_extension == 'obb': if file_extension == 'apk' or file_extension == 'obb':
continue continue
filename = os.path.join(repodir, name) filename = os.path.join(repodir, name)
if not common.is_repo_file(name): if not common.is_repo_file(filename):
continue continue
stat = os.stat(filename) stat = os.stat(filename)
if stat.st_size == 0: if stat.st_size == 0: