[151087] contrib/mp-buildbot/mpbb-list-subports
cal at macports.org
cal at macports.org
Sat Aug 6 13:13:19 PDT 2016
Revision: 151087
https://trac.macports.org/changeset/151087
Author: cal at macports.org
Date: 2016-08-06 13:13:19 -0700 (Sat, 06 Aug 2016)
Log Message:
-----------
mp-buildbot: Print reasons for exclusion to stderr
When excluding a subport or port from builds, print a message to stderr
indicating that it was ignored and why.
Modified Paths:
--------------
contrib/mp-buildbot/mpbb-list-subports
Modified: contrib/mp-buildbot/mpbb-list-subports
===================================================================
--- contrib/mp-buildbot/mpbb-list-subports 2016-08-06 19:10:11 UTC (rev 151086)
+++ contrib/mp-buildbot/mpbb-list-subports 2016-08-06 20:13:19 UTC (rev 151087)
@@ -16,17 +16,37 @@
local portgroup
local ports
local exclude
+ local exclude_reasons
+ local reason
- ports=$("${option_prefix}/bin/port" -q info --index --line --name "subportof:${portname}" "${portname}" 2>/dev/null) || return $?
+ ports=$("${option_prefix}/bin/port" -q info --index --line --name "${portname}" "subportof:${portname}" 2>/dev/null) || return $?
for port in $ports; do
exclude=0
+ exclude_reasons=()
+
+ if [[ "$port" =~ graveyard ]]; then
+ exclude=1
+ exclude_reasons+=("its name contains 'graveyard'")
+ fi
+
for portgroup in $("${option_prefix}/bin/port-tclsh" "${thisdir}/tools/portgroups.tcl" "$port"); do
if [ "$portgroup" = "obsolete-1.0" ]; then
exclude=1
+ exclude_reasons+=("it includes the obsolete 1.0 PortGroup")
fi
done
- if [ $exclude -ne 1 ]; then
+
+ if [ $exclude -eq 0 ]; then
echo "$port"
+ else
+ if [ ${#exclude_reasons[@]} -eq 1 ]; then
+ echo >&2 "Excluding '${port}' because ${exclude_reasons[0]}."
+ else
+ echo >&2 "Excluding '${port}' for the following reasons:"
+ for reason in "${exclude_reasons[@]}"; do
+ echo >&2 " - ${reason}"
+ done
+ fi
fi
done
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160806/d09623f0/attachment.html>
More information about the macports-changes
mailing list