1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-14 11:00:10 +01:00

fix source tarball filename for media files

bug from 07ce948809
This commit is contained in:
Hans-Christoph Steiner 2017-03-10 19:05:01 +01:00
parent 6aca906863
commit 6fe27ad75e

View File

@ -588,7 +588,7 @@ def scan_repo_files(apkcache, repodir, knownapks, use_date_from_file=False):
and common.is_valid_package_name(name.split('_')[0]):
repo_file['id'] = packageName
repo_file['versioncode'] = int(versionCode)
srcfilename = name + ".src.tar.gz"
srcfilename = name + "_src.tar.gz"
if os.path.exists(os.path.join(repodir, srcfilename)):
repo_file['srcname'] = srcfilename
repo_file['size'] = stat.st_size