[146894] contrib/mp-buildbot/mpbb-install-dependencies
raimue at macports.org
raimue at macports.org
Sat Mar 19 11:13:09 PDT 2016
Revision: 146894
https://trac.macports.org/changeset/146894
Author: raimue at macports.org
Date: 2016-03-19 11:13:09 -0700 (Sat, 19 Mar 2016)
Log Message:
-----------
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.
Modified Paths:
--------------
contrib/mp-buildbot/mpbb-install-dependencies
Modified: contrib/mp-buildbot/mpbb-install-dependencies
===================================================================
--- contrib/mp-buildbot/mpbb-install-dependencies 2016-03-19 17:40:51 UTC (rev 146893)
+++ contrib/mp-buildbot/mpbb-install-dependencies 2016-03-19 18:13:09 UTC (rev 146894)
@@ -15,6 +15,11 @@
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..."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160319/7056621c/attachment.html>
More information about the macports-changes
mailing list