s=${s%:*}
# ensure package ends with .spec
s=${s%.spec}.spec
- out=$(git tag | awk "/auto\/$dist\//{if (!a++) print \$1}")
+ git fetch --tags
+ out=$(git for-each-ref --count=1 --sort=-authordate refs/tags/auto/$dist \
+ --format='%(refname:short)')
echo "$s:$out"
done
}