diff options
author | Yuan Liao <liaoyuan@gmail.com> | 2021-06-14 13:22:34 -0700 |
---|---|---|
committer | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2021-06-15 08:55:31 +0200 |
commit | 5ddaec4db70483bff1a83cef04af84cee7e5e1c1 (patch) | |
tree | c1f67a74ccea60b06e79e21a93824ec63c7d3dbc /scripts | |
parent | sci-biology/dcm2niix: add version 1.0.20210317 (diff) | |
download | sci-5ddaec4db70483bff1a83cef04af84cee7e5e1c1.tar.gz sci-5ddaec4db70483bff1a83cef04af84cee7e5e1c1.tar.bz2 sci-5ddaec4db70483bff1a83cef04af84cee7e5e1c1.zip |
scripts/setup-and-run-repoman.sh: use 'sort -V' to get latest tag
Without the -V flag to enable version sort, 'sort' can falsely identify
a version string like 3.0.9 to be greater than 3.0.10. This can be
shown by running 'git tag | grep portage | sort -u' in the Portage Git
tree. This issue is not so prominent for repoman yet because the latest
version of repoman as of now is 3.0.3, but it will surface when repoman
3.0.10 is released.
Signed-off-by: Yuan Liao <liaoyuan@gmail.com>
Closes: https://github.com/gentoo/sci/pull/1094
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/setup-and-run-repoman.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/setup-and-run-repoman.sh b/scripts/setup-and-run-repoman.sh index f9e45a9cf..471a05181 100755 --- a/scripts/setup-and-run-repoman.sh +++ b/scripts/setup-and-run-repoman.sh @@ -16,7 +16,7 @@ git clone https://github.com/gentoo/portage.git cd portage # Get all versions, and read into array -mapfile -t RM_VERSIONS < <( git tag | grep repoman | sort -u ) +mapfile -t RM_VERSIONS < <( git tag | grep repoman | sort -uV ) # Select latests version (last element in array) RM_VERS="${RM_VERSIONS[-1]}" |