mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-12 18:59:50 +03:00
main/mpfr4: adjust logic for forming patch sources
Before this change, when the pkgver is not a patched version, the while loop for adding the patches is run with an invalid loop control. If the pkgver is unpatched version (as it is now), the control statement for the while looks like this: while [ $_i -le 4.2.2 ]; do ... done In this case, '4.2.2' (the package version) is invalid for the '-le' test operator. Adding the outer if statement prevents this. I didn't bump the pkgrel since there is no actual functional change to the package output; this only prevents a shell error from occuring.
This commit is contained in:
parent
c06ddaca2f
commit
011955c827
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ subpackages="$pkgname-doc mpfr-dev"
|
|||
source="https://www.mpfr.org/mpfr-$_pkgver/mpfr-$_pkgver.tar.xz"
|
||||
# generate url's to patches
|
||||
_i=1
|
||||
while [ $_i -le ${pkgver##*_p} ]; do
|
||||
while [ "$pkgver" != "$_pkgver" ] && [ $_i -le ${pkgver##*_p} ]; do
|
||||
[ $_i -lt 10 ] && _pad="0" || _pad=
|
||||
source="$source
|
||||
mpfr-$_pkgver-patch$_pad$_i.patch::https://www.mpfr.org/mpfr-$_pkgver/patch$_pad$_i
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue