mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
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>
This commit is contained in:
committed by
Andrew Ammerlaan
parent
53ef6ac31c
commit
f5a89a542d
@@ -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]}"
|
||||
|
||||
Reference in New Issue
Block a user