Skip to content

Commit

Permalink
scripts: fix auto-update
Browse files Browse the repository at this point in the history
  • Loading branch information
licy183 authored Dec 20, 2023
1 parent 6f88df9 commit 0439746
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions common-files/building-system-patches/0002-fix-auto-update.patch
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,25 @@ Only search packages from TUR repository when auto-updating.
fi

body="$(
Sleep 1s after update in order to not reach GitHub rate limit.
--- a/scripts/bin/update-packages
+++ b/scripts/bin/update-packages
@@ -118,6 +118,7 @@
echo # Newline.
echo "INFO: Updating ${TERMUX_PKG_NAME} [Current version: ${TERMUX_PKG_VERSION}]"
termux_pkg_auto_update
+ sleep 1s
}

declare -A _LATEST_TAGS=()
Do not run check-updated step, which will make it easy to reach GitHub rate limit.
--- a/scripts/bin/update-packages
+++ b/scripts/bin/update-packages
@@ -195,6 +195,7 @@
}

_check_updated() {
+ return 1
if [[ -n "${_LATEST_TAGS[${1##*/}]:-}" ]]; then
(
set +eu

0 comments on commit 0439746

Please sign in to comment.