pkgmeek: fixed the tests for exiting immediately after a successful download

This commit is contained in:
John McQuah 2022-06-02 20:57:37 -04:00
parent 0b7e71ec1e
commit 0e45a89aa9
1 changed files with 3 additions and 3 deletions

View File

@ -87,16 +87,16 @@ here="${_local_[$u]}"; url="${source[$u]}";
errDL+=1; }
done ; }
[ $errDL != 0 ] || info "Successfully obtained all needed source files."
[ $errDL = 0 ] && info "Successfully obtained all needed source files." || exit $E_DOWNLOAD
# If the user only asked for '-utd', perform the check using the sources that do exist.
check_pkg_mtime; pkg_utd=$?
[ "$PKGMK_MTIME_ONLY" = "no" ] || [ "$PKGMK_CHECK_SIG" = "yes" ] || exit $pkg_utd
# Some further tests before proceeding with the build
# Stop here if the user did not request an action that can be done with just the source files.
[ "$PKGMK_DOWNLOAD_ONLY" = "no" ] || [ "$PKGMK_UPDATE_MD5" = "yes" ] || \
[ "$PKGMK_UPDATE_FOOTPRINT" = "yes" ] || [ "$PKGMK_UPDATE_SIG" = "yes" ] || \
[ "$PKGMK_EXTRACT_ONLY" = "yes" ] || [ $errDL != 0 ] || exit $(( E_DOWNLOAD*(errDL != 0) ))
[ "$PKGMK_EXTRACT_ONLY" = "yes" ] || exit 0
# Take into account all the actions that can be done with a previously built package,
# or with a full set of sources