From 795902b02837f194381d24aad69f63134b3ec4f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20W=C3=B3jcik?= Date: Mon, 13 May 2019 19:44:11 +0200 Subject: [PATCH] update-check: add crates.io --- common/xbps-src/shutils/update_check.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/xbps-src/shutils/update_check.sh b/common/xbps-src/shutils/update_check.sh index ef88bd5f4a4..615bf63c6b4 100644 --- a/common/xbps-src/shutils/update_check.sh +++ b/common/xbps-src/shutils/update_check.sh @@ -97,6 +97,9 @@ update_check() { *rubygems.org*) url="https://rubygems.org/gems/${pkgname#ruby-}" rx='href="/gems/'${pkgname#ruby-}'/versions/\K[\d\.]*(?=")' ;; + *crates.io*) + url="https://crates.io/api/v1/crates/${pkgname#rust-}" + rx='/crates/'${pkgname#rust-}'/\K[0-9.]*(?=/download)' ;; esac fi