docs(auto-update): document new epoch handling

- now termux_pkg_upgrade_version can write epoch extracted from
  TERMUX_PKG_VERSION, directly.

Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
Aditya Alok 2022-04-05 11:24:24 +05:30
parent a97590c87c
commit 5d60474d27
No known key found for this signature in database
GPG Key ID: 5A52117417798AC7
1 changed files with 1 additions and 1 deletions

@ -20,7 +20,7 @@ different suborders are not executed simultaneously.
| 1 | `termux_pkg_auto_update` | Yes | By default, decide which method (gitlab, github or repology) to use for update, but can be overrided to use custom method. | *None* |
| 2.1 | `termux_github_auto_update` | No | Default update method for packages hosted on github.com. It decides which type of tag to fetch based on `TERMUX_PKG_SRCURL`. | *None* |
| 2.2 | `termux_gitlab_auto_update` | No | Default update method for packages hosted on gitlab.com (or host specified by `TERMUX_GITLAB_API_HOST`). It decides which type of tag to fetch based on `TERMUX_PKG_SRCURL`. | *None* |
| 3 | `termux_pkg_upgrade_version` | No | Write the latest version and updated checksum, check whether updated package builds properly and then push changes to repo. | &bull; LATEST_VERSION - version to write to build.sh. It should be appended with epoch, if any. <br><br> &bull; --skip-version-check - Optional flag. Do not check whether given LATEST_VERSION is greater than current TERMUX_PKG_VERSION. |
| 3 | `termux_pkg_upgrade_version` | No | Write the latest version and updated checksum, check whether updated package builds properly and then push changes to repo. | &bull; LATEST_VERSION - version to write to build.sh. <br><br> &bull; --skip-version-check - Optional flag. Do not check whether given LATEST_VERSION is greater than current TERMUX_PKG_VERSION. |
| 3.1 | `termux_pkg_is_update_needed` | No | Check whether LATEST_VERSION is greater than TERMUX_PKG_VERSION or not. <br> Called if `--skip-version-check` was not passed to `termux_pkg_upgrade_version`. <br><br> **NOTE:** You should not call it manually otherwise if `TERMUX_PKG_UPDATE_VERSION_REGEXP` is used, it won't compare versions extracted from it. Version is extracted by `termux_pkg_upgrade_version`. | *Not for public use.* |
## Overriding