update-check: add crates.io

This commit is contained in:
Piotr Wójcik 2019-05-13 19:44:11 +02:00 committed by Helmut Pozimski
parent 39b6d2e01d
commit 795902b028
1 changed files with 3 additions and 0 deletions

View File

@ -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