Revert "auto-update: Exclude epoch in version comparison"

This reverts commit ac0d70a63a.

Since we use dpkg now, epoch can be included in comparison.

Signed-off-by: Aditya Alok <alok@termux.dev>
This commit is contained in:
Aditya Alok 2023-01-22 12:58:31 +05:30
parent c626262307
commit c2998ba413
No known key found for this signature in database
GPG Key ID: 345AE134142077D8
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ termux_pkg_upgrade_version() {
if [[ "${SKIP_VERSION_CHECK}" != "--skip-version-check" ]]; then
if ! termux_pkg_is_update_needed \
"${TERMUX_PKG_VERSION#*:}" "${LATEST_VERSION}"; then
"${TERMUX_PKG_VERSION}" "${EPOCH}${LATEST_VERSION}"; then
echo "INFO: No update needed. Already at version '${LATEST_VERSION}'."
return 0
fi