<pre style='margin:0'>
Ryan Schmidt (ryandesign) pushed a commit to branch master
in repository mpbb.
</pre>
<p><a href="https://github.com/macports/mpbb/commit/3994fd16b37de98ed3082ee36fdbed7cfe425d76">https://github.com/macports/mpbb/commit/3994fd16b37de98ed3082ee36fdbed7cfe425d76</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 3994fd16b37de98ed3082ee36fdbed7cfe425d76
</span>Author: Ryan Schmidt <git@ryandesign.com>
AuthorDate: Wed Nov 28 16:56:55 2018 -0600
<span style='display:block; white-space:pre;color:#404040;'> Also allow mpbb to download private archives
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> See: https://trac.macports.org/ticket/54800
</span>---
mpbb-checkout | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/mpbb-checkout b/mpbb-checkout
</span><span style='display:block; white-space:pre;color:#808080;'>index ddb0d8c..cae5e54 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/mpbb-checkout
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/mpbb-checkout
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -16,6 +16,10 @@ MacPorts to use the latter as a port source.
</span>
Options:
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ --archive-sites=<URL>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Space-separated list of additional URLs to check for preexisting
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ archives. Defaults to \`https://packages-private.macports.org'.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> --git[=<path>]
Use Git to obtain the jobs tools and ports tree; this is the default
behavior. The path to a Git client may be provided explicitly,
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -132,7 +136,7 @@ svn-checkout() {
</span>
checkout() {
local args
<span style='display:block; white-space:pre;background:#ffe0e0;'>- parseopt git::,jobs-url:,ports-branch:,ports-commit:,ports-url:,svn::,svn-url: "$@" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ parseopt archive-sites:,git::,jobs-url:,ports-branch:,ports-commit:,ports-url:,svn::,svn-url: "$@" \
</span> || return
# shellcheck disable=SC2086
set -- ${args+"${args[@]}"}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -146,6 +150,14 @@ checkout() {
</span> # shellcheck disable=SC2154
local -r ports_dir=${option_work_dir}/ports
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ # $option_archive_sites is set by parseopt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # shellcheck disable=SC2154
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ : "${option_archive_sites=https://packages-private.macports.org}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # $option_archive_sites isn't quoted on purpose
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # shellcheck disable=SC2086
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ archive_site_local=$(printf '%s/:tbz2 ' ${option_archive_sites})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> local checkout git jobs_dir svn
# shellcheck disable=SC2100 disable=SC2154
if [[ -z ${option_svn+_} ]] && git=${option_git:-$(command -v git)}; then
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -190,6 +202,7 @@ checkout() {
</span> # Do not edit !!!
sources_conf ${option_work_dir}/sources.conf
host_blacklist *.distfiles.macports.org *.packages.macports.org
<span style='display:block; white-space:pre;background:#e0ffe0;'>+archive_site_local ${archive_site_local}
</span> EOF
if uname -r | grep -q '^9\.'; then
</pre><pre style='margin:0'>
</pre>