cargo-test: adjust regex to match multiple digits in version

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
ignatenkobrain 2018-07-21 00:46:12 +02:00
commit 500fc19623
No known key found for this signature in database
GPG key ID: 695714BD1BBC5F4C

View file

@ -6,7 +6,7 @@ dnf -y --best --nogpgcheck --repo="test-$pkg" install "$pkg-devel"
provides=$(rpm -qP "$pkg-devel")
while read -r prv; do
if [[ "$prv" =~ ^crate\(([^/]+)\)\ \=\ ([0-9]\.[0-9]\.[0-9]) ]]; then
if [[ "$prv" =~ ^crate\(([^/]+)\)\ \=\ ([0-9]+\.[0-9]+\.[0-9]+) ]]; then
crate="${BASH_REMATCH[1]}"
version="${BASH_REMATCH[2]}"
fi