From a472ceee2b260970c0d21c41d7c8352e6792585c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rainer=20M=C3=BCller?= Date: Sat, 19 Mar 2016 18:13:09 +0000 Subject: [PATCH] mpbb: skip install-deps if port has no deps If a port does not have any dependencies, the port command fails: $ port install depof:bzip2 Error: No ports matched the given expression Check for the list of dependencies first and skip this step if it is empty. git-svn-id: https://svn.macports.org/repository/macports/contrib/mp-buildbot@146894 d073be05-634f-4543-b044-5fe20cf6d1d6 --- mpbb-install-dependencies | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mpbb-install-dependencies b/mpbb-install-dependencies index 6dd91e2..18dfefd 100644 --- a/mpbb-install-dependencies +++ b/mpbb-install-dependencies @@ -15,6 +15,11 @@ install-dependencies() { return 1 fi + # skip if the port has no dependencies + if [ -z "$(${option_prefix}/bin/port echo depof:${option_port})" ]; then + return 0 + fi + if ! "${option_prefix}/bin/port" -d install --unrequested depof:"${option_port}"; then echo "Build failed, cleaning up..."