Skip to content

Commit

Permalink
chore(main/apt): drop user agent patch
Browse files Browse the repository at this point in the history
Why remove the patch:

 termux/termux-exec#24

 These changes in termux-exec would cause apt to send invalid
 installation prefix in user agent.

 This patch is not actual for now and can be removed anyway.

***

Background why the patch was added earlier:

 Its only purpose to generate HTTP user agent string specific for
 environment. This lets us to distinguish on server side whether
 user download packages using official Termux app or derivative
 checking the installation prefix path and disallow downloads
 made by non-Termux projects to reduce egress traffic when needed.
  • Loading branch information
sylirre committed Jan 20, 2024
1 parent 7df95cc commit d931124
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 57 deletions.
57 changes: 0 additions & 57 deletions packages/apt/0012-termux-id.patch

This file was deleted.

1 change: 1 addition & 0 deletions packages/apt/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ TERMUX_PKG_DESCRIPTION="Front-end for the dpkg package manager"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="2.7.7"
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://deb.debian.org/debian/pool/main/a/apt/apt_${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=d3b3f3b7014f6e561b86c059b89040d0c742cbabc576593c6efaa0dd7b24de77
# apt-key requires utilities from coreutils, findutils, gpgv, grep, sed.
Expand Down

1 comment on commit d931124

@sylirre
Copy link
Member Author

@sylirre sylirre commented on d931124 Jan 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Package needs upgrading (v2.7.10).

Please sign in to comment.