这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@Grimler91
Copy link
Member

To make it easier to develop the scripts and tools.

diff -ur old/usr/ new/usr/ gives me this diff with just trivial changes:

diff -ur ./old/usr/bin/pkg ./new/usr/bin/pkg
--- ./old/usr/bin/pkg	2022-07-30 16:51:07.000000000 +0200
+++ ./new/usr/bin/pkg	2022-07-30 18:50:27.000000000 +0200
@@ -61,7 +61,7 @@
 		--fail \
 		--connect-timeout "$timeout" \
 		--location \
-		--user-agent "Termux-PKG/2.0 mirror-checker (termux-tools 1.24) Termux (com.termux; install-prefix:/data/data/com.termux/files/usr)" \
+		--user-agent "Termux-PKG/2.0 mirror-checker (termux-tools 1.25.0) Termux (com.termux; install-prefix:/data/data/com.termux/files/usr)" \
 		"$mirror/dists/stable/Release" >/dev/null 2>&1
 }
 
diff -ur ./old/usr/bin/termux-info ./new/usr/bin/termux-info
--- ./old/usr/bin/termux-info	2022-07-30 16:51:08.000000000 +0200
+++ ./new/usr/bin/termux-info	2022-07-30 18:50:27.000000000 +0200
@@ -104,7 +104,7 @@
 Updatable packages:
 $(updates)
 termux-tools version:
-1.24
+1.25.0
 Android version:
 $(getprop ro.build.version.release)
 Kernel build information:
Only in ./old/usr/bin: xdg-open
diff -ur ./old/usr/etc/motd.sh ./new/usr/etc/motd.sh
--- ./old/usr/etc/motd.sh	2022-07-30 16:51:07.000000000 +0200
+++ ./new/usr/etc/motd.sh	2022-07-30 18:50:27.000000000 +0200
@@ -12,6 +12,7 @@
 echo -e "                       \e[1mInstall:\e[0m pkg install <package>"
 echo -e "                       \e[1mUpdate:\e[0m  pkg update"
 echo ""
+if [ "$TERMUX_MAIN_PACKAGE_FORMAT" = "debian" ]; then
 echo -e "                   \e[1mSubscribing to additional repos:\e[0m"
 echo -e "                       \e[1mRoot:\e[0m pkg install root-repo"
 echo -e "                       \e[1mX11: \e[0m pkg install x11-repo"
@@ -19,5 +20,6 @@
 echo "                   For fixing any repository issues,"
 echo "                   try 'termux-change-repo' command."
 echo ""
+fi
 echo -e "                   Report issues at \e[4mtermux.dev/issues\e[0m"
 echo ""
diff -ur ./old/usr/etc/profile.d/init-termux-properties.sh ./new/usr/etc/profile.d/init-termux-properties.sh
--- ./old/usr/etc/profile.d/init-termux-properties.sh	2022-07-30 16:51:07.000000000 +0200
+++ ./new/usr/etc/profile.d/init-termux-properties.sh	2022-07-30 18:50:27.000000000 +0200
@@ -1,4 +1,4 @@
 if [ ! -f /data/data/com.termux/files/home/.config/termux/termux.properties ] && [ ! -e /data/data/com.termux/files/home/.termux/termux.properties ]; then
-mkdir -p /data/data/com.termux/files/home/.termux
-cp /data/data/com.termux/files/usr/share/examples/termux/termux.properties /data/data/com.termux/files/home/.termux/
+	mkdir -p /data/data/com.termux/files/home/.termux
+	cp /data/data/com.termux/files/usr/share/examples/termux/termux.properties /data/data/com.termux/files/home/.termux/
 fi
diff: ./old/usr/share/doc/termux-tools/LICENSE: No such file or directory
diff: ./new/usr/share/doc/termux-tools/LICENSE: No such file or directory

@Grimler91 Grimler91 marked this pull request as draft July 31, 2022 11:42
@Grimler91
Copy link
Member Author

Converting to draft, will remake the termux-tools repo (at some point in the (hopefully) near future) and preserve git history, and then force-push to update the tag we use here.

Grimler91 and others added 2 commits August 8, 2022 20:26
All termux-tools have been moved into their own repository, which will
make it easier to develop the scripts and tools.

v1.25.0 also adds more mirrors and updates termux-change-repo so that
it can be used to select a single mirror again.
@Grimler91 Grimler91 merged commit c75e29d into master Aug 8, 2022
@Grimler91 Grimler91 deleted the termux-tools branch August 23, 2022 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant