diff --git a/scripts/pkgmeek b/scripts/pkgmeek index f579326..3a584f0 100755 --- a/scripts/pkgmeek +++ b/scripts/pkgmeek @@ -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