On Sat 11 Aug 2018 at 23:22:07 +0200, Edgar Fuß wrote: > > It just stops after printing the package list: > 1. What's the exit code? > 2. If you run it with sh -x, do you see where it exits? It exits as usual, but it has no work to do any more. cvs/pkgsrc$ sh -x pkg_chk -vak ... + echo pkgtools/pkg_chk pkgtools/pkg_install ... pkgtools/pkg_chk pkgtools/pkg_install pkgtools/pkgdiff pkgtools/pkgin pkgtools/n ... net/rtmpdump textproc/p5-XML-LibXML www/p5-Mojolicious + PKGDIRLIST='' + '[' -n '' ']' + check_packages_installed + MISSING_TODO='' + MISMATCH_TODO='' + '[' -n '' ']' + '[' -n '' -a -f /usr/pkgsrc/pkgchk_update-murthe.falu.nl.conf ']' + '[' -n '' ']' + '[' -n '' ']' + '[' -n '' ']' + '[' -n '' -a -z '' -a -f /usr/pkgsrc/pkgchk_update-murthe.falu.nl.conf ']' + '[' -z '' ']' + '[' -z '' ']' + '[' -n '' ']' + cleanup_and_exit + rm -f /tmp/pkg_chk.ZdTWWv/tmp + rmdir /tmp/pkg_chk.ZdTWWv + exit cvs/pkgsrc$ echo $? 0 cvs/pkgsrc$ Here you see the echo at the end of function pkgdirs_from_conf(), echoing a list of packages. Then the line (984) PKGDIRLIST="$(pkgdirs_from_conf $PKGCHK_CONF $PKGDIRLIST)" assigns an empty string to PKGDIRLIST... And then it has no work to do and proceeds to a regular exit. -Olaf. -- ___ Olaf 'Rhialto' Seibert -- Wayland: Those who don't understand X \X/ rhialto/at/falu.nl -- are condemned to reinvent it. Poorly.
Attachment:
signature.asc
Description: PGP signature