diff --git a/packages/jackett/build.sh b/packages/jackett/build.sh index ba1dee2939d02c..7215960d975276 100644 --- a/packages/jackett/build.sh +++ b/packages/jackett/build.sh @@ -3,6 +3,7 @@ TERMUX_PKG_DESCRIPTION="API Support for your favorite torrent trackers" TERMUX_PKG_LICENSE="GPL-2.0-or-later" TERMUX_PKG_MAINTAINER="@termux" TERMUX_PKG_VERSION="0.24.275" +TERMUX_PKG_REVISION=1 TERMUX_PKG_SRCURL="https://github.com/Jackett/Jackett/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz" TERMUX_PKG_SHA256=e8d3fa23a4c13e0c84fa1b1720b3e9b0d317960cfa87bcf5aaf58ef6aea2decf TERMUX_PKG_BUILD_DEPENDS="aspnetcore-targeting-pack-9.0, dotnet-targeting-pack-9.0" diff --git a/scripts/lint-packages.sh b/scripts/lint-packages.sh index 2f0dab26dace94..9e1aad37c0c807 100755 --- a/scripts/lint-packages.sh +++ b/scripts/lint-packages.sh @@ -123,11 +123,18 @@ check_indentation() { # We'll need the 'origin/master' as a base commit when running the version check. # So try fetching it now if it doesn't exist. -if ! base_commit="HEAD~$(git rev-list --count FETCH_HEAD..)"; then +# if this script is running in GitHub Actions, the base_commit is actually HEAD~1 +# not HEAD~$(git rev-list --count FETCH_HEAD..) +# See https://github.com/actions/checkout/issues/504 for more information +if [[ "${CI-false}" == "true" ]]; then + base_commit="HEAD~1" +elif ! base_commit="HEAD~$(git rev-list --count FETCH_HEAD..)"; then git fetch https://github.com/termux/termux-packages.git base_commit="HEAD~$(git rev-list --count FETCH_HEAD..)" fi +printf '%s\n' "base_commit: $(git rev-parse "$base_commit")" + check_version() { local package_dir="${1%/*}"