cookutils rev 1128

modules/postcheck: keep badges list sorted
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Jan 02 18:55:20 2019 +0200 (2019-01-02)
parents 44799da9eaeb
children e0fb0c452bf1
files modules/postcheck
line diff
     1.1 --- a/modules/postcheck	Wed Jan 02 18:19:55 2019 +0200
     1.2 +++ b/modules/postcheck	Wed Jan 02 18:55:20 2019 +0200
     1.3 @@ -309,3 +309,8 @@
     1.4  sed -i "/^$PACKAGE	/d" $badges_global
     1.5  echo "$PACKAGE	$(tr '\n' ' ' <$badges | sed 's| $||')" >>$badges_global
     1.6  rm $badges
     1.7 +
     1.8 +tosort=$(mktemp)
     1.9 +cp $badges_global $tosort
    1.10 +sort -o $badges_global $tosort
    1.11 +rm $tosort