mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-05 06:50:10 +01:00
Merge branch 'handle-default-txt-in-fdroid-metadata' into 'master'
handle default.txt changelog in fdroid metadata/ See merge request fdroid/fdroidserver!1243
This commit is contained in:
commit
eb79769b37
@ -1,3 +1,4 @@
|
||||
---
|
||||
|
||||
variables:
|
||||
pip: pip3 --timeout 100 --retries 10
|
||||
@ -136,16 +137,14 @@ ubuntu_jammy_pip:
|
||||
<<: *apt-template
|
||||
script:
|
||||
- apt-get install git default-jdk-headless python3-pip python3-venv rsync
|
||||
- rm -rf env
|
||||
- python3 -m venv env
|
||||
- . env/bin/activate
|
||||
- $pip install --upgrade babel pip setuptools
|
||||
|
||||
# setup venv to act as release build machine
|
||||
- python -m venv sdist-env
|
||||
- python3 -m venv sdist-env
|
||||
- . sdist-env/bin/activate
|
||||
- ./setup.py sdist
|
||||
- deactivate
|
||||
- tar tzf dist/fdroidserver-*.tar.gz
|
||||
|
||||
# back to bare machine to act as user's install machine
|
||||
- export ANDROID_HOME=/opt/android-sdk
|
||||
- $pip install sdkmanager
|
||||
@ -354,7 +353,7 @@ fdroid build:
|
||||
|
||||
# TODO remove sdkmanager install once it is included in the buildserver image
|
||||
- apt-get install sdkmanager
|
||||
- rm -rf "$ANDROID_HOME/tools" # TODO remove once sdkmanager can upgrade installed packages
|
||||
- rm -rf "$ANDROID_HOME/tools" # TODO remove once sdkmanager can upgrade installed packages
|
||||
- sdkmanager "tools" "platform-tools" "build-tools;31.0.0"
|
||||
|
||||
- git ls-remote https://gitlab.com/fdroid/fdroiddata.git master
|
||||
@ -462,7 +461,7 @@ servergitmirrors:
|
||||
- python3 -m venv --system-site-packages env
|
||||
- . env/bin/activate
|
||||
- export PYTHONPATH=`pwd`
|
||||
- export SETUPTOOLS_USE_DISTUTILS=stdlib # https://github.com/pypa/setuptools/issues/2956
|
||||
- export SETUPTOOLS_USE_DISTUTILS=stdlib # https://github.com/pypa/setuptools/issues/2956
|
||||
- $pip install -e .
|
||||
- mkdir /root/.ssh/
|
||||
- ./tests/key-tricks.py
|
||||
|
@ -998,6 +998,7 @@ def insert_localized_app_metadata(apps):
|
||||
os.path.join(root, f))
|
||||
elif f == 'default.txt':
|
||||
# use "default.txt" changelog entry as fallback.
|
||||
locale = segments[-2]
|
||||
localized = _get_localized_dict(apps[packageName], locale)
|
||||
if not localized.get('whatsNew', ''):
|
||||
_set_localized_text_entry(apps[packageName], locale, 'whatsNew',
|
||||
|
Loading…
Reference in New Issue
Block a user