apt: Fix ssh:// sources (fixes #3093)

This commit is contained in:
Fredrik Fornwall 2018-11-28 01:37:15 +01:00
parent 6d8cb33ef6
commit 407e3e38d7
2 changed files with 1 additions and 13 deletions

View File

@ -2,7 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://packages.debian.org/apt
TERMUX_PKG_DESCRIPTION="Front-end for the dpkg package manager"
TERMUX_PKG_DEPENDS="libcurl, liblzma, dpkg, gpgv, libc++, termux-exec"
TERMUX_PKG_VERSION=1.4.8
TERMUX_PKG_REVISION=6
TERMUX_PKG_REVISION=7
TERMUX_PKG_SHA256=767ad7d6efb64cde52faececb7d3c0bf49800b9fe06f3a5b0132ab4c01a5b8f8
TERMUX_PKG_SRCURL=http://ftp.debian.org/debian/pool/main/a/apt/apt_${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="

View File

@ -1,12 +0,0 @@
diff -uNr apt-1.4.8/methods/rsh.cc apt-1.4.8.mod/methods/rsh.cc
--- apt-1.4.8/methods/rsh.cc 2017-09-13 19:47:33.000000000 +0300
+++ apt-1.4.8.mod/methods/rsh.cc 2018-06-19 13:41:50.497061290 +0300
@@ -152,7 +152,7 @@
if (Host.empty() == false) {
Args[i++] = Host.c_str();
}
- Args[i++] = "/bin/sh";
+ Args[i++] = "@TERMUX_PREFIX@/bin/sh";
Args[i] = 0;
execvp(Args[0],(char **)Args);
exit(100);