31 Commits
Author SHA1 Message Date
Ryan Carsten Schmidt 91d8eb55da Blacklist mirror.fcix.net and mirror.sjtu.edu.cn
These are official mirrors that don't use *.macports.org hostnames for
various reasons.
2026-04-07 07:20:57 -05:00
Ryan Schmidt 45bed217f8 Remove mirrors.shu.edu.cn from blacklist
It was removed from the list because it has down for weeks.

See: https://trac.macports.org/ticket/58430
2019-05-15 12:26:41 -05:00
Ryan Schmidt 9672a0a9d6 Blacklist mirrors.shu.edu.cn
This is an official mirror but for legal reasons it is not able to use
the *.macports.org CNAMEs that other mirrors use.
2019-03-31 21:22:12 -05:00
Ryan Schmidt e70d3c9fc6 Add --binpath option to mpbb-checkout
See: https://trac.macports.org/ticket/57396
2019-01-07 09:02:56 -06:00
Ryan SchmidtandRyan Schmidt 3994fd16b3 Also allow mpbb to download private archives
See: https://trac.macports.org/ticket/54800
2018-12-07 05:17:55 -06:00
Ryan SchmidtandRyan Schmidt c90475b6f1 mpbb-checkout: Blacklist hosts using wildcards
This feature is new in MacPorts 2.5.
2018-06-13 14:06:03 -05:00
Ryan Schmidt ad4d6116f2 Exclude new ywg.ca mirror 2017-10-15 15:58:15 -05:00
Joshua Root 7716d31da1 Work around slow 'xcodebuild -version' on 10.5 2017-01-05 23:20:59 +11:00
Ryan Schmidt c475503855 Exclude new mirrors kmq.jp and pek.cn 2017-01-01 20:17:48 -06:00
Lawrence Velázquez 9b80fb925b mpbb: Update GitHub URLs
git-svn-id: https://svn.macports.org/repository/macports/contrib/mp-buildbot@153846 d073be05-634f-4543-b044-5fe20cf6d1d6
2016-10-13 15:14:36 +00:00
Lawrence Velázquez 20072aff77 mpbb: Remove --port and --prefix from subcommands
The updated Buildbot configuration is now live.

Shortest deprecation periods ever!

git-svn-id: https://svn.macports.org/repository/macports/contrib/mp-buildbot@152624 d073be05-634f-4543-b044-5fe20cf6d1d6
2016-09-13 14:25:42 +00:00
Lawrence Velázquez a609f30271 mpbb: Allow fetching jobs tools and ports via Git
`mpbb checkout` accepts a new `--git` option, which is also the default.
It is an error to specify it alongside `--svn` or `--svn-url`.

It also accepts `--ports-branch`, which can be used to fetch Git objects
from a particular branch of a remote repository.

git-svn-id: https://svn.macports.org/repository/macports/contrib/mp-buildbot@152533 d073be05-634f-4543-b044-5fe20cf6d1d6
2016-09-12 01:59:14 +00:00
Lawrence Velázquez 6316577f05 mpbb: Move jobs tools and ports tree
After the upcoming GitHub migration, the ports tree will be served from
https://github.com/macports/ports.git, while the jobs tools will be in
the `jobs` subdirectory of https://github.com/macports/infrastructure.git.
Relocate the checkouts to accommodate Git's relative inflexibility.
(Subversion can selectively check out arbitrary subdirectories, so this
doesn't affect it.)

Automatically removing the old checkouts seems too bold, so just print
informational messages.

git-svn-id: https://svn.macports.org/repository/macports/contrib/mp-buildbot@152532 d073be05-634f-4543-b044-5fe20cf6d1d6
2016-09-12 01:59:12 +00:00
Lawrence Velázquez 24c603886e mpbb: Don't hardcode jobs tools location
The location of the jobs tools is used in a couple of places, so
don't repeat ourselves.

git-svn-id: https://svn.macports.org/repository/macports/contrib/mp-buildbot@152531 d073be05-634f-4543-b044-5fe20cf6d1d6
2016-09-12 01:59:10 +00:00
Lawrence Velázquez 771368f2d2 mpbb: Refactor Subversion checkout
`checkout` now calls a VCS-specific function to do the heavy lifting.
Factor out the Subversion-related code and improve it:

- Use `svn info` to check for an existing repository instead of just
  looking for a `.svn` directory.

- Refuse to checkout into a nonempty directory. Subversion itself won't
  complain in this scenario: `svn --non-interactive checkout` registers
  conflicts and exits with status 0. (This might happen if a user
  switches version control systems and doesn't remove the preexisting
  working tree.)

- Print URL of the remote repository.

- It doesn't hurt to run `svn cleanup` on a clean repository, so just
  run it always.

git-svn-id: https://svn.macports.org/repository/macports/contrib/mp-buildbot@152530 d073be05-634f-4543-b044-5fe20cf6d1d6
2016-09-12 01:59:08 +00:00
Lawrence Velázquez 652b6bf897 mpbb: Generalize checkout operations
- Rename options and parameters to be VCS-agnostic.

- Don't assume that the jobs tools and ports tree are stored in the same
  repository. Add new options "--jobs-url" and "--ports-url" and
  deprecate "--svn-url".

- Conditionalize existing Subversion code.

git-svn-id: https://svn.macports.org/repository/macports/contrib/mp-buildbot@152529 d073be05-634f-4543-b044-5fe20cf6d1d6
2016-09-12 01:59:06 +00:00
Lawrence Velázquez d39d16cc99 mpbb: Implement new help system
The `--help` option has been replaced by a new `help` subcommand.
Invoking `mpbb help` displays global usage and available subcommands,
while `mpbb help <subcommand>` displays subcommand-specific usage.

Each subcommand script `mpbb-FOO` must now define a function `FOO-usage`
that prints its specific help to standard out.

git-svn-id: https://svn.macports.org/repository/macports/contrib/mp-buildbot@152528 d073be05-634f-4543-b044-5fe20cf6d1d6
2016-09-12 01:59:04 +00:00
Lawrence Velázquez d717dc3e7d mpbb: Separate global and subcommand options
À la Git, command-line options that are applicable to all subcommands
(e.g., `--prefix`) are now given before the subcommand name, while
options that are specific to particular subcommands (e.g.,
`--archive-site`) come after. For example, this:

    mpbb checkout --prefix /opt/local --svn /usr/bin/svn

is now:

    mpbb --prefix /opt/local checkout --svn /usr/bin/svn

This is a practical improvement as well as a conceptual one, as the
Buildbot configuration will be able to factor out the common command
prefix like so:

    cmd = ('./mpbb/mpbb', '--prefix', WithProperties(prefix))
    cmd_selfupdate = cmd + ('selfupdate',)
    cmd_checkout = cmd + ('checkout', '--svn-url', svnurl)
    [...]

For backwards compatibility with our current Buildbot deployment, all
subcommands except `list-subports` still accept `--prefix`.

git-svn-id: https://svn.macports.org/repository/macports/contrib/mp-buildbot@152525 d073be05-634f-4543-b044-5fe20cf6d1d6
2016-09-12 01:58:56 +00:00
Lawrence Velázquez 6f35f30f1c mpbb: Replace "return $?" with "return"
A bare "return" returns the exit status of the last command executed.

git-svn-id: https://svn.macports.org/repository/macports/contrib/mp-buildbot@152355 d073be05-634f-4543-b044-5fe20cf6d1d6
2016-09-04 20:55:03 +00:00
Lawrence Velázquez 71c224dd94 mpbb: Construct host_blacklist dynamically
git-svn-id: https://svn.macports.org/repository/macports/contrib/mp-buildbot@152287 d073be05-634f-4543-b044-5fe20cf6d1d6
2016-09-02 15:29:32 +00:00
Lawrence Velázquez 66ae491623 mpbb: Stick to standard 4-char-per-TAB modelines
git-svn-id: https://svn.macports.org/repository/macports/contrib/mp-buildbot@152131 d073be05-634f-4543-b044-5fe20cf6d1d6
2016-08-29 16:16:34 +00:00
Lawrence Velázquez d0ac534912 mpbb: Add modelines
Use "8" for Emacs "tab-width" and Vim "tabstop" to display tab
characters in the conventional manner.

git-svn-id: https://svn.macports.org/repository/macports/contrib/mp-buildbot@152130 d073be05-634f-4543-b044-5fe20cf6d1d6
2016-08-29 16:01:45 +00:00
Lawrence Velázquez c9797be57d mpbb: Rename "--workdir" to "--work-dir"
In option names, consistently separate words with hyphens/underscores
(e.g., "--staging-dir").

git-svn-id: https://svn.macports.org/repository/macports/contrib/mp-buildbot@152129 d073be05-634f-4543-b044-5fe20cf6d1d6
2016-08-29 15:58:33 +00:00
Ryan Schmidt c3ac4a623b mp-buildbot: blacklist MacPorts mirrors
If the master server doesn't have a package or distfile, the mirrors won't
either.

git-svn-id: https://svn.macports.org/repository/macports/contrib/mp-buildbot@151924 d073be05-634f-4543-b044-5fe20cf6d1d6
2016-08-24 02:34:42 +00:00
Clemens Lang 11e6cca4a6 mp-buildbot: checkout: Hide SC false positives
Most of the warnings emitted by ShellCheck don't apply because ShellCheck isn't
aware that this script is sourced from mpbb.

git-svn-id: https://svn.macports.org/repository/macports/contrib/mp-buildbot@151470 d073be05-634f-4543-b044-5fe20cf6d1d6
2016-08-16 21:29:47 +00:00