mirror of
https://github.com/termux/termux-packages
synced 2024-06-17 22:57:07 +00:00
fix(termux_repology_api_get_latest_version.sh): return "Already up to date" for all repology update requests in the case if repology is unavailable or other error
https://github.com/termux/termux-packages/issues/18690#issuecomment-1855014477
This commit is contained in:
parent
cd30faa73b
commit
093a038c6b
|
@ -20,7 +20,8 @@ termux_repology_api_get_latest_version() {
|
||||||
find /usr/lib/python3.* -name EXTERNALLY-MANAGED -print -quit | grep -q . ||
|
find /usr/lib/python3.* -name EXTERNALLY-MANAGED -print -quit | grep -q . ||
|
||||||
pip3 install bs4 requests >/dev/null # Install python dependencies.
|
pip3 install bs4 requests >/dev/null # Install python dependencies.
|
||||||
python3 "${TERMUX_SCRIPTDIR}"/scripts/updates/api/dump-repology-data \
|
python3 "${TERMUX_SCRIPTDIR}"/scripts/updates/api/dump-repology-data \
|
||||||
"${TERMUX_REPOLOGY_DATA_FILE}" >/dev/null
|
"${TERMUX_REPOLOGY_DATA_FILE}" >/dev/null || \
|
||||||
|
echo "{}" > ${TERMUX_REPOLOGY_DATA_FILE}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local PKG_NAME="$1"
|
local PKG_NAME="$1"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user