From: Hans-Christoph Steiner Date: Thu, 8 Dec 2016 18:11:36 +0000 (+0100) Subject: fix bug including media files X-Git-Tag: 0.8~116^2~1 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=5214889bbd69d16a62e26ad1a9f729870303588e;p=fdroidserver.git 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 56d51fcd6be992c7bbc38431db06817816c1e08e --- diff --git a/fdroidserver/update.py b/fdroidserver/update.py index ba5fd706..a81eda21 100644 --- a/fdroidserver/update.py +++ b/fdroidserver/update.py @@ -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: