cargo-test: adjust regex to match multiple digits in version
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
ef0342d728
commit
500fc19623
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue