diff --git a/ports-mgmt/portmaster/files/portmaster.sh.in b/ports-mgmt/portmaster/files/portmaster.sh.in index 6c673257fb81..a6c4518d03b3 100644 --- a/ports-mgmt/portmaster/files/portmaster.sh.in +++ b/ports-mgmt/portmaster/files/portmaster.sh.in @@ -1773,9 +1773,17 @@ fi # In case we went elsewhere to create a backup package cd $pd/$portdir -# Do the install here in case a run dependency has a build dependency on us. +if [ -z "$RECURSE_THOROUGH" -a ! -e "$NO_DEP_UPDATES" ]; then + echo '' + echo "===>>> Starting check for runtime dependencies" + dependency_check run-depends-list +fi + +# In case we went elsewhere in the dependency check +cd $pd/$portdir + # Defining NO_DEPENDS ensures that we will control the installation of the -# run depends, not bsd.port.mk. +# depends, not bsd.port.mk. make -DNO_DEPENDS $PM_MAKE_ARGS install || { if [ -z "$NO_BACKUP" -a -n "$upg_port" ]; then echo '' @@ -1812,15 +1820,6 @@ if [ ! "$allfiles" = ' ' ]; then done fi -if [ -z "$RECURSE_THOROUGH" -a ! -e "$NO_DEP_UPDATES" ]; then - echo '' - echo "===>>> Starting check for runtime dependencies" - dependency_check run-depends-list -fi - -# In case we went elsewhere in the dependency check -cd $pd/$portdir - if [ -n "$MAKE_PACKAGE" ]; then echo "===>>> Creating a package for new version $new_port" make $PM_MAKE_ARGS package || fail 'Package creation of new port failed'