Skip to content

Commit

Permalink
common/xbps-src/shutils/update_check: add ability to disable update-c…
Browse files Browse the repository at this point in the history
…heck

useful for cases where update checking does not make sense or is
impossible
  • Loading branch information
classabbyamp committed Sep 8, 2023
1 parent 0192981 commit 95ed99c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Manual.md
Expand Up @@ -905,6 +905,10 @@ in url. Defaults to `(|v|$pkgname)[-_.]*`.
part that follows numeric part of version directory
in url. Defaults to `(|\.x)`.

- `disabled` can be set to disable update checking for the package,
in cases where checking for updates is impossible or does not make sense.
This should be set to a string describing why it is disabled.

<a id="patches"></a>
### Handling patches

Expand Down
3 changes: 3 additions & 0 deletions common/xbps-src/shutils/update_check.sh
Expand Up @@ -13,6 +13,9 @@ update_check() {
if [ "$XBPS_UPDATE_CHECK_VERBOSE" ]; then
echo "using $XBPS_TARGET_PKG/update overrides" 1>&2
fi
if [ -n "$disabled" ]; then
echo "update-check DISABLED for $original_pkgname: $disabled" 1>&2
fi
elif [ -z "$distfiles" ]; then
if [ "$XBPS_UPDATE_CHECK_VERBOSE" ]; then
echo "NO DISTFILES found for $original_pkgname" 1>&2
Expand Down

0 comments on commit 95ed99c

Please sign in to comment.