uv: update to 0.4.30.
[void-pkg.git] / common / travis / verify-update-check.sh
blob902ebc0d6b44565d8df6e2ab42f16e49fb155296
1 #!/bin/sh
2 # runs update-check on all changed templates, then errors only if there was an
3 # issue with the update-check. does not error if further updates are available,
4 # as there may be a good reason not to update to those versions
6 set -e
8 export XBPS_UPDATE_CHECK_VERBOSE=yes
9 err=0
11 while read -r pkg; do
12 /bin/echo -e "\x1b[34mVerifying update-check of $pkg:\x1b[0m"
13 ./xbps-src update-check "$pkg" 2>&1 > /tmp/update-check.log || err=1
14 cat /tmp/update-check.log
15 if grep -q 'NO VERSION' /tmp/update-check.log; then
16 echo "::warning file=srcpkgs/$pkg/template,line=1,title=update-check failed::verify and fix update-check for $pkg"
18 done < /tmp/templates
20 exit $err