mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50:29 +03:00
fix disappearing build logs when deploying
This commit is contained in:
parent
6d11da5e13
commit
d665106813
1 changed files with 32 additions and 32 deletions
|
|
@ -3253,10 +3253,9 @@ def deploy_build_log_with_rsync(appid, vercode, log_content):
|
||||||
logging.warning(_('skip deploying full build logs: log content is empty'))
|
logging.warning(_('skip deploying full build logs: log content is empty'))
|
||||||
return
|
return
|
||||||
|
|
||||||
with tempfile.TemporaryDirectory() as tmpdir:
|
|
||||||
# gzip compress log file
|
# gzip compress log file
|
||||||
log_gz_path = os.path.join(
|
log_gz_path = os.path.join('repo',
|
||||||
tmpdir, '{pkg}_{ver}.log.gz'.format(pkg=appid,
|
'{pkg}_{ver}.log.gz'.format(pkg=appid,
|
||||||
ver=vercode))
|
ver=vercode))
|
||||||
with gzip.open(log_gz_path, 'wb') as f:
|
with gzip.open(log_gz_path, 'wb') as f:
|
||||||
if isinstance(log_content, str):
|
if isinstance(log_content, str):
|
||||||
|
|
@ -3321,6 +3320,7 @@ def is_repo_file(filename):
|
||||||
return os.path.isfile(filename) \
|
return os.path.isfile(filename) \
|
||||||
and not filename.endswith(b'.asc') \
|
and not filename.endswith(b'.asc') \
|
||||||
and not filename.endswith(b'.sig') \
|
and not filename.endswith(b'.sig') \
|
||||||
|
and not filename.endswith(b'.log.gz') \
|
||||||
and os.path.basename(filename) not in [
|
and os.path.basename(filename) not in [
|
||||||
b'index.jar',
|
b'index.jar',
|
||||||
b'index_unsigned.jar',
|
b'index_unsigned.jar',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue