aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuan Liao <liaoyuan@gmail.com>2021-06-14 13:22:34 -0700
committerAndrew Ammerlaan <andrewammerlaan@gentoo.org>2021-06-15 08:56:16 +0200
commitf5a89a542d5355496d0ac1dde6faeda00c5eaa9c (patch)
tree9b037ab30b5a73c591b9db09f09b8742f17c14a6
parentgui-apps/paperde: drop broken 0.1.1 version (diff)
downloadguru-f5a89a54.tar.gz
guru-f5a89a54.tar.bz2
guru-f5a89a54.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>
-rwxr-xr-xscripts/setup-and-run-repoman.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/setup-and-run-repoman.sh b/scripts/setup-and-run-repoman.sh
index f9e45a9cf1..471a05181f 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]}"