59 Commits

Author SHA1 Message Date
Baptiste Fontaine
169b8fc039 Revert "minor perf improvements"
This reverts commit 16a2a8274a7808e63a6c78475e12a7c0ef5812ef.
2015-12-26 23:00:38 +01:00
Baptiste Fontaine
48681c3f3a minor perf improvements
Closes Homebrew/homebrew#47224.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-12-26 22:58:26 +01:00
Xu Cheng
0f84b976ba move CoreFormulaRepository into separate file
For users whose local brew is at around 2015-06-11 to 2015-08-06,
running `brew update` will emit following error:

  Error: uninitialized constant Formulary::CoreFormulaRepository

This is caused by the same bug described in Homebrew/homebrew#42553.

This commit workarounds this issue and restores `brew update` compatibility
for users mentioned above.

Also cleanup legacy `require "cmd/tap"`.
2015-12-19 22:05:30 +08:00
Xu Cheng
3cc101ec5e pull: use tap object
Fix the regression introduced by Homebrew/homebrew#46735.
2015-12-13 01:29:52 +08:00
Dominyk Tiller
1a4068f0be pull: fix pulling desired bottles 2015-11-12 01:35:58 +00:00
Dominyk Tiller
b381137cef pull: don't try to publish nonexistent bottles
```
Fast-forward
 Library/Formula/ant.rb     |  8 ++++----
 Library/Formula/nailgun.rb | 10 +++++-----
 2 files changed, 9 insertions(+), 9 deletions(-)
Deleted branch pull-bottle-45902 (was 1fdb73d).
==> Publishing on Bintray:
{"files":3}
==> Publishing on Bintray:
Error: Failure while executing
```

In that case, "jetty-runner" is bottle unneeded, but because I've passed the
pull bottle command for the other two formulae, it attempts to publish a bottle
that isn't there.
2015-11-12 00:19:38 +00:00
Mike McQuaid
2614d39087 pull: fix pulling new bottles. 2015-11-01 08:25:02 -08:00
Xu Cheng
ae329a802b pull: use bottle_defined?
Fixes Homebrew/homebrew#45575

Closes Homebrew/homebrew#45577.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-11-01 08:22:18 -08:00
Xu Cheng
593dff3dc1 pull: bottle_unneeded? is covered by bottle_disabled? 2015-11-01 17:51:10 +08:00
Mike McQuaid
18b2d0150e pull: handle unneeded and disabled bottles.
Closes Homebrew/homebrew#45563.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-10-31 23:45:11 -07:00
Mike McQuaid
49dde3c559 pull: increase Bintray fetch retries. 2015-09-14 08:09:26 +01:00
Mike McQuaid
cfc6f737f3 pull: allow pulling all testing jobs. 2015-09-11 14:59:46 +01:00
Mike McQuaid
59bd08e992 pull: more formulae fetch outside of main loop.
Closes Homebrew/homebrew#43313.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-27 13:41:06 +01:00
Mike McQuaid
166e33c2ff pull: do fetch after everything else, sleep more.
Use an exponential back-off on the sleep and try the fetch more times.

Hopefully this will mean that we spent less time waiting for Bintray.

Closes Homebrew/homebrew#43240.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-25 16:43:37 +01:00
BrewTestBot
13d544e11e Core files style updates.
Closes Homebrew/homebrew#42354.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03 13:22:35 +01:00
Dominyk Tiller
a675aae553 pull: stop printing warning on test-bot
Closes Homebrew/homebrew#42097.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-07-24 19:22:01 +01:00
Mike McQuaid
913659efe4 pull: wait for Bintray publish, don't sleep.
Closes Homebrew/homebrew#41530.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-07-10 16:13:52 +01:00
Dominyk Tiller
2456c9a4c4 pull: sleep for longer 2015-07-07 23:26:04 +01:00
Mike McQuaid
33fa3bacf6 pull: support Jenkins "Homebrew Testing" jobs. 2015-07-03 10:59:53 +01:00
Xu Cheng
f47a4dac75 pull: use Formula#full_name 2015-05-29 17:02:22 +08:00
Xu Cheng
68a654dd26 pull: warning if we are not in master
Closes Homebrew/homebrew#39708.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-05-13 18:32:37 +08:00
Xu Cheng
e1611c4c22 brew-pull: use pkg_version when publishing bottles 2015-04-26 17:19:03 +08:00
Mike McQuaid
033964fe87 pull: fetch bottles with --retry. 2015-04-20 19:52:39 +01:00
Dominyk Tiller
3cc24528bf Revert "brew pull: add automatic tap repair"
This reverts commit bcd34ded9e4b17b8658b7ae947cd392a4e5942c0.

Closes Homebrew/homebrew#38658.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-04-14 22:40:12 -07:00
Dominyk Tiller
399388d8b9 brew pull: add automatic tap repair
At the moment, every time I pull a new formulae from a tap, I have to
fetch it with the fully qualified name, `brew fetch
homebrew/versions/duck123 `, which is fine, but then I also have to
install, test, and audit it in the same way, which isn’t fixed until I
tap repair, which gets a bit onerous.

This just adds a step to `brew pull` where it does the tap repair
automatically for taps.

Closes Homebrew/homebrew#37788.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-04-13 12:45:18 -07:00
Mike McQuaid
c86166c43e pull: increase bottle publish wait timeout. 2015-04-09 10:34:33 +01:00
Mike McQuaid
6acf05aea0 pull: sleep before fetching uploaded bottle. 2015-04-08 13:56:57 +01:00
Mike McQuaid
631742c527 pull: try downloading bottles after upload. 2015-04-07 08:33:58 +01:00
Mike McQuaid
30de8f0f74 pull: make the bintray message stronger. 2015-03-31 13:11:21 +01:00
Mike McQuaid
cf204b6234 pull: die on invalid parameters. 2015-03-20 17:46:19 +00:00
Mike McQuaid
3f9d5aad74 pull: allow pulling from API URLs.
Jenkins has started spitting these out; no idea why.
2015-03-20 17:46:18 +00:00
Mike McQuaid
3fd45673a5 pull: always publish bottles.
The previous logic was flawed as it wasn't publishing new versions of
bottles.
2015-03-18 18:15:40 +00:00
Mike McQuaid
1308070e66 pull: remove unused variable. 2015-03-08 09:39:15 +00:00
Mike McQuaid
2f4c02e106 pull: rename variable to avoid shadowing. 2015-03-08 09:39:14 +00:00
Mike McQuaid
4c19b5d913 pull: don't try to tap formulae.
Unneeded now we're using canonical names.
2015-02-24 17:17:31 +00:00
Mike McQuaid
07ddf7aab5 pull: only link changed tap formulae. 2015-02-23 14:57:09 +00:00
Mike McQuaid
e50badf11c pull: use link_tap_formula method. 2015-02-23 14:49:10 +00:00
Mike McQuaid
c7363e2d03 pull: backtrace when tap repair fails. 2015-02-23 13:25:06 +00:00
Mike McQuaid
7d99168192 pull: allow tap repair to fail. 2015-02-23 10:45:59 +00:00
Mike McQuaid
04f89a94ba pull: run tap --repair when pulling tap formulae.
This should allow formulae to be found after they are pulled.

Closes Homebrew/homebrew#37043.
2015-02-22 15:59:11 +00:00
Mike McQuaid
ca119fe7fe pull: add missing Bintray variable warning. 2015-02-19 16:53:53 +00:00
Mike McQuaid
a40fcfe342 pull: fix newly added bottles on Bintray. 2015-02-19 15:29:32 +00:00
Mike McQuaid
e773d0c3b9 pull: use Bintray package naming. 2015-02-19 12:58:56 +00:00
Mike McQuaid
5c7c7a4ce6 pull: support taps, use same version as test-bot. 2015-02-19 11:06:21 +00:00
Mike McQuaid
258c4ddefe pull: check bottle commit URL before branching.
Otherwise we annoyingly end up on a branch unnecessarily.
2015-02-19 11:06:20 +00:00
Mike McQuaid
675991eb61 pull: publish bottles on Bintray. 2015-02-18 13:07:22 +00:00
Mike McQuaid
38f9a78c29 Add initial Bintray upload support. 2015-02-17 18:57:59 +00:00
Mike McQuaid
2320c0a6c1 pull: copy new subject when bumping. 2015-02-11 14:22:19 +00:00
Mike McQuaid
105fcb5399 pull: allow temporarily editing an empty commit. 2015-01-23 17:35:20 +01:00
Mike McQuaid
dac4848661 pull: merge and rebase when pulling bottles.
This seems to be a more robust approach when a PR has multiple commits.
2015-01-15 11:15:13 +00:00