Skip to content

Commit e3b6f11

Browse files
committed
fix(common-files/building-system-patches): change git fetch in lint-packages.sh to TUR URL
1 parent ef9e23c commit e3b6f11

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
--- a/scripts/lint-packages.sh
2+
+++ b/scripts/lint-packages.sh
3+
@@ -124,7 +124,7 @@ 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+
if ! base_commit="HEAD~$(git rev-list --count FETCH_HEAD..)"; then
7+
- git fetch https://github.com/termux/termux-packages.git
8+
+ git fetch https://github.com/termux-user-repository/tur.git
9+
base_commit="HEAD~$(git rev-list --count FETCH_HEAD..)"
10+
fi
11+
12+
@@ -213,7 +213,8 @@ check_version() {
13+
"when a package is rebuilt with no new upstream release." \
14+
"" \
15+
"Got : ${version_old} -> ${version_new}" \
16+
- "Expected: ${version_old} -> ${version}-$((old_revision + 1))"
17+
+ "Expected: ${version_old} -> ${version}-$((old_revision + 1))" \
18+
+ "HEAD: $(git rev-parse HEAD@{1})"
19+
continue
20+
# If that check passed the TERMUX_PKG_VERSION must have changed,
21+
# in which case TERMUX_PKG_REVISION should be reset to 0.

0 commit comments

Comments
 (0)