File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
common-files/building-system-patches Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 1+ --- a/scripts/lint-packages.sh
2+ +++ b/scripts/lint-packages.sh
3+ @@ -124,7 +124,8 @@ check_indentation() {
4+ # We'll need the 'origin/master' as a base commit when running the version check.
5+ # So try fetching it now if it doesn't exist.
6+ + git reset HEAD~
7+ if ! base_commit="HEAD~$(git rev-list --count FETCH_HEAD..)"; then
8+ - git fetch https://github.com/termux/termux-packages.git
9+ + git fetch https://github.com/termux-user-repository/tur.git
10+ base_commit="HEAD~$(git rev-list --count FETCH_HEAD..)"
11+ fi
12+
13+ @@ -213,7 +213,8 @@ check_version() {
14+ "when a package is rebuilt with no new upstream release." \
15+ "" \
16+ "Got : ${version_old} -> ${version_new}" \
17+ - "Expected: ${version_old} -> ${version}-$((old_revision + 1))"
18+ + "Expected: ${version_old} -> ${version}-$((old_revision + 1))" \
19+ + "HEAD: $(git rev-parse HEAD)"
20+ continue
21+ # If that check passed the TERMUX_PKG_VERSION must have changed,
22+ # in which case TERMUX_PKG_REVISION should be reset to 0.
You can’t perform that action at this time.
0 commit comments