Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/seed-build-list
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-09-15 09:08:33 +0200
committerErich Eckner <git@eckner.net>2017-09-15 09:08:33 +0200
commit00d37e50f3701448f163da7b3211694a6e5d20b0 (patch)
tree083153e05abd844a91a0de7a3a5e9931f358beb4 /bin/seed-build-list
parent5163c6e3912f6982b02b9c6b59954640eda9a93c (diff)
bin/seed-build-list: expand_version and shrink_version new to correct misbehaving "sort -V" (vs. "vercmp")
Diffstat (limited to 'bin/seed-build-list')
-rwxr-xr-xbin/seed-build-list2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/seed-build-list b/bin/seed-build-list
index 4067ed0..d58c1f9 100755
--- a/bin/seed-build-list
+++ b/bin/seed-build-list
@@ -173,7 +173,9 @@ while read -r mirror; do
s|^\(.*\)-\([^-]\+-[^-]\+\)|ours \1-\2 \2 \1|
'
) | \
+ expand_version 3 | \
sort -k4,4 -k3Vr,3 -k1,1 | \
+ shrink_version 3 | \
uniq -f3 | \
grep '^theirs ' | \
awk '{print $4}' | \