chiark / gitweb /
fix bug including media files
authorHans-Christoph Steiner <hans@eds.org>
Thu, 8 Dec 2016 18:11:36 +0000 (19:11 +0100)
committerHans-Christoph Steiner <hans@eds.org>
Tue, 28 Feb 2017 11:08:04 +0000 (12:08 +0100)
'name' is not the full path, so it'll always fail common.is_repo_file()'s
os.path.isfile() check.

Introduced in 56d51fcd6be992c7bbc38431db06817816c1e08e

fdroidserver/update.py

index ba5fd706f15d7e61b4c78b32015b1339a066deb2..a81eda215bcbefe42496e6a86147b47fa07c6cfb 100644 (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':
             continue
         filename = os.path.join(repodir, name)
-        if not common.is_repo_file(name):
+        if not common.is_repo_file(filename):
             continue
         stat = os.stat(filename)
         if stat.st_size == 0: