<pre style='margin:0'>
Rainer Müller (raimue) pushed a commit to branch master
in repository mpbb.
</pre>
<p><a href="https://github.com/macports/mpbb/commit/639def5ad990ecf1e227e377e5a46124c447ca94">https://github.com/macports/mpbb/commit/639def5ad990ecf1e227e377e5a46124c447ca94</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 639def5 mpbb-install-*: Fetch in separate command first
</span>639def5 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 639def5ad990ecf1e227e377e5a46124c447ca94
</span>Author: Rainer Müller <raimue@macports.org>
AuthorDate: Wed Apr 4 18:05:57 2018 +0200
<span style='display:block; white-space:pre;color:#404040;'> mpbb-install-*: Fetch in separate command first
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> This makes it easier to identify fetch failures. Do not write to
</span><span style='display:block; white-space:pre;color:#404040;'> failcache when fetching failed as this is likely a temporary problem.
</span>---
mpbb-install-dependencies | 10 ++++++++++
mpbb-install-port | 10 ++++++++++
2 files changed, 20 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/mpbb-install-dependencies b/mpbb-install-dependencies
</span><span style='display:block; white-space:pre;color:#808080;'>index ac8fb92..2f955a5 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/mpbb-install-dependencies
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/mpbb-install-dependencies
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -115,6 +115,16 @@ install-dependencies() {
</span> else
# $deprequestedvariants isn't quoted on purpose
# shellcheck disable=SC2154,SC2086
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ if ! "${option_prefix}/bin/port" -d fetch "$depname" $deprequestedvariants; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ echo "Fetch of dependency '${depname}' with variants '${deprequestedvariants}' failed, aborting." >&2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ echo "[FAIL] (fetch)" >> "$log_status_dependencies"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ echo "Building '$port' ... [ERROR] (failed to fetch dependency '${depname}') maintainers: $(get-maintainers "$port" "${depname}")." >> "$log_subports_progress"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Do not add to failcache. This could be a temporary problem that will
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # be resolved once the file appears on mirrors.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # $deprequestedvariants isn't quoted on purpose
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # shellcheck disable=SC2154,SC2086
</span> if ! "${option_prefix}/bin/port" -dn install --unrequested "$depname" $deprequestedvariants; then
echo "Build of dependency '${depname}' with variants '${deprequestedvariants}' failed, aborting." >&2
echo "[FAIL]" >> "$log_status_dependencies"
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/mpbb-install-port b/mpbb-install-port
</span><span style='display:block; white-space:pre;color:#808080;'>index 8fc0b72..9f51a26 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/mpbb-install-port
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/mpbb-install-port
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -50,6 +50,16 @@ install-port() {
</span> time_start=$(date +%s)
# $option_prefix is set in mpbb
# shellcheck disable=SC2154
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ if ! "${option_prefix}/bin/port" -dk fetch "$@"; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ echo "Fetch of '$port' failed."
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # log: summary for the portwatcher
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ echo "Fetching '$port' ... [ERROR] maintainers: $(get-maintainers "$port")." >> "$log_subports_progress"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Do not add to failcache. This could be a temporary problem that will
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # be resolved once the file appears on mirrors.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # $option_prefix is set in mpbb
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # shellcheck disable=SC2154
</span> if "${option_prefix}/bin/port" -dkn install "$@"; then
# Remove failcache if it exists
failcache_success "$@"
</pre><pre style='margin:0'>
</pre>