diff options
-rwxr-xr-x | sbopkglint | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -563,12 +563,18 @@ for package in $packages; do # created by doinst, which would be OK). echo -n "Exploding $package to $PKG ..." olddir="$( pwd )" + package_fullpath="$( realpath $package )" cd "$PKG" - /sbin/explodepkg "$PKG" &> $PKG/.tmp.$$ - S="$?" - if [ "$S" != "0" ]; then + /sbin/explodepkg "$package_fullpath" &> $PKG/.tmp.$$ + + # 20230319 bkw: explodepkg *never* exits with non-zero status, not + # even if the package file doesn't exist. don't bother checking. + # check for install/ dir instead: every valid slackware package has + # to have this dir. + if [ ! -d install ]; then + cat $PKG/.tmp.$$ + warn "not a valid Slackware package" echo_FAILED - echo "explodepkg exited with status $S" rm -rf $PKG exit_status=1 continue |