auto-update: Exclude epoch in version comparison

to avoid warnings like

```
/usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 2:0.8.3 is an invalid version and will not be supported in a future release
```
This commit is contained in:
Tee KOBAYASHI 2022-12-29 22:33:26 +09:00 committed by xtkoba
parent 825227d6ef
commit ac0d70a63a
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}" "${EPOCH}${LATEST_VERSION}"; then
"${TERMUX_PKG_VERSION#*:}" "${LATEST_VERSION}"; then
echo "INFO: No update needed. Already at version '${LATEST_VERSION}'."
return 0
fi