mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-06 01:11:07 +03:00
update: do not include fdroid-generated tarballs as "media" files
`fdroid build` will generate source tarballs, and now with support for adding any file to a repo, we need to explicitly ignore the fdroid- generated source tarballs. If people want to include source tarballs in a repo, they still can, as long as that source tarball doesn't use the `fdroid build` tarball naming scheme.
This commit is contained in:
parent
6207ee7878
commit
9d363b91f4
1 changed files with 4 additions and 1 deletions
|
@ -48,7 +48,7 @@ from . import metadata
|
||||||
from .common import FDroidPopen, FDroidPopenBytes, SdkToolsPopen
|
from .common import FDroidPopen, FDroidPopenBytes, SdkToolsPopen
|
||||||
from .metadata import MetaDataException
|
from .metadata import MetaDataException
|
||||||
|
|
||||||
METADATA_VERSION = 17
|
METADATA_VERSION = 18
|
||||||
|
|
||||||
screen_densities = ['640', '480', '320', '240', '160', '120']
|
screen_densities = ['640', '480', '320', '240', '160', '120']
|
||||||
|
|
||||||
|
@ -549,6 +549,9 @@ 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 filename.endswith('_src.tar.gz'):
|
||||||
|
logging.debug('skipping source tarball:', filename)
|
||||||
|
continue
|
||||||
if not common.is_repo_file(filename):
|
if not common.is_repo_file(filename):
|
||||||
continue
|
continue
|
||||||
stat = os.stat(filename)
|
stat = os.stat(filename)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue