10755 Commits

Author SHA1 Message Date
Xu Cheng
329358c33c manpage: add doc for tap --list-official and --list-pinned 2015-08-21 20:08:13 +08:00
Xu Cheng
d09d2690ca tap: add --list-pinned 2015-08-21 20:08:13 +08:00
Xu Cheng
ac71386373 test-bot: tap TapDependency recursively
Closes Homebrew/homebrew#43145.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-21 15:17:21 +08:00
Dominyk Tiller
212d0b82fd xcode: update 10.11 clang 2015-08-21 03:10:18 +01:00
Xu Cheng
62d1636144 update: only update renamed when necessary 2015-08-20 20:12:02 +08:00
Vlad Shablinsky
35ef2bc132 update manpages for migrate
Closes Homebrew/homebrew#42801.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-20 19:55:35 +08:00
Vlad Shablinsky
e4480cf6bf update: add formula renames to report 2015-08-20 19:55:35 +08:00
Vlad Shablinsky
896848dd87 migrator: skip check for same taps if --force 2015-08-20 19:55:35 +08:00
Xu Cheng
fe830e4099 Requirement: support tap formula as default_formula
Closes Homebrew/homebrew#43107.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-20 17:31:17 +08:00
Xu Cheng
0bce3b3f36 TapDependency: allow passing arbitrary option_name 2015-08-20 17:31:17 +08:00
Xu Cheng
72a11b7d11 test_migrator: fix lock file leak
Closes Homebrew/homebrew#43025.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-20 15:47:42 +08:00
Xu Cheng
a628c15afd lock keg during migration 2015-08-20 15:47:42 +08:00
Xu Cheng
b6c64ae46a also lock oldname when applied 2015-08-20 15:47:41 +08:00
Xu Cheng
ab363ea1d9 CurlApacheMirrorDownloadStrategy: ignore HOMEBREW_CURL_VERBOSE
Fixes Homebrew/homebrew#43002

Closes Homebrew/homebrew#43058.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-20 15:47:33 +08:00
Xu Cheng
4740d7fad4 uninstall: simplify logic
Also reduce unnecessary disk operations

Closes Homebrew/homebrew#43024.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-18 15:58:07 +08:00
Xu Cheng
4d84ff3b03 allowing rescue https redirect error
It can be useful when implementing custom https mirror strategy such as Homebrew/homebrew#42955.

Closes Homebrew/homebrew#43020.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-18 15:55:36 +08:00
Baptiste Fontaine
8ba0fb9fcf unnecessary calls to .select simplified
These are minor perf optimizations.

Closes Homebrew/homebrew#43028.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-08-18 00:18:22 +02:00
Baptiste Fontaine
f690b54621 Suggest 'brew uninstall' everywhere for consistency
Mixing 'brew remove' with 'brew uninstall' can confuse users.

Closes Homebrew/homebrew#43026.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-08-17 20:36:02 +02:00
Xu Cheng
b4ddaecf75 improve zsh_completion
Closes Homebrew/homebrew#43016.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-17 16:21:09 +08:00
Xu Cheng
502101a2e2 manpage: slight format tweak 2015-08-17 16:12:29 +08:00
Xu Cheng
a380ec636e enable sandbox on test-bot
Closes Homebrew/homebrew#43014.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-17 14:12:11 +08:00
Dominyk Tiller
63a7f29270 cleanup: require thread 2015-08-16 21:01:52 +01:00
Xu Cheng
c4df86eb9d cleanup: speed up rm_DS_Store by multithread
Before

```
$ time brew cleanup -s
brew cleanup -s  0.73s user 3.52s system 58% cpu 7.297 total
```

After

```
$ time brew cleanup -s
brew cleanup -s  0.69s user 2.57s system 139% cpu 2.341 total
```

Closes Homebrew/homebrew#42968.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-17 01:54:03 +08:00
Vlad Shablinsky
dc4feaf56b test_keg: add tests for oldname optlink
Closes Homebrew/homebrew#42998.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-17 01:53:58 +08:00
Vlad Shablinsky
d3037f7044 update opt for renamed formula
After the formula gets renamed oldname opt is created and
it points to the linked keg. However if we then upgrade newname
oldname opt still points to the same keg it pointed before upgrade.
The commit fixes this behaviour thus that oldname opt links at the
same keg opt point.
2015-08-17 01:53:58 +08:00
Mike McQuaid
9025719968 cleanup: fix reversed prune time. 2015-08-16 17:50:33 +01:00
Mike McQuaid
76316a82cb cleanup: tweak prune code. 2015-08-16 16:57:12 +01:00
Martin Afanasjew
e85e57b217 cleanup: make --force less aggressive
Change behavior for `brew cleanup` as follows:

- If `--force` is supplied, remove only outdated keg-only packages.
- If `--prune=<days>` is supplied, remove both logs and cached downloads
  older than the specified number of days. Use `--prune=all` to remove
  all logs and cached downloads irrespective of age.
- By default, remove logs after 14 days and cached downloads never.

Also centralizes handling of `--prune`, thus removing duplicate logic.

This is motivated by commit 17eee232838d4639b25f863aa342b1dda61b81bc
that made `--force` much more aggressive and made it override whatever
was specified via `--prune`, completely removing all:

- outdated keg-only packages
- cached downloads irrespective of age
- logs irrespective of age

This made it impossible to remove outdated keg-only packages without
also deleting all cached downloads, which is at least inconvenient for
people with limited bandwidth wanting to rebuild packages later.

Closes Homebrew/homebrew#42970.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-16 16:47:24 +01:00
Baptiste Fontaine
ccb613df69 which: tests added
Closes Homebrew/homebrew#42954.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-08-16 17:03:05 +02:00
Baptiste Fontaine
c631fc3013 which: don't fail on malformed paths in PATH 2015-08-16 17:03:05 +02:00
Tim D. Smith
6606c7b53b Revert "work around missing __debug header in Xcode CLT 6.3"
Ding, dong, the witch is dead...

This reverts commit fd5ca9ba16f5afc181364369210cb94e997a5a5e.

Ref Homebrew/homebrew#38514, Homebrew/homebrew#38735.

Closes Homebrew/homebrew#41843.
2015-08-15 20:24:20 -07:00
Tim D. Smith
88e8e6cf60 Don't try to link symlinks over their targets
If we have lib/python3.4/site-packages, which is a symlink to
HOMEBREW_PREFIX/lib/python3.4/site-packages, link will be confused. This
only appears after unlinking and relinking because this symlink is
created in post_install, which runs after the first link.

Fixes Homebrew/linuxbrew#502.

Closes Homebrew/homebrew#42891.
2015-08-15 20:24:20 -07:00
Tim D. Smith
f5642cb105 let tests pass on Xcode-only systems
Closes Homebrew/homebrew#42976.
2015-08-15 20:24:20 -07:00
Xu Cheng
48f260f674 migrator: better exception printing 2015-08-15 20:37:24 +08:00
Vlad Shablinsky
f83d418608 migrator: don't use installed_prefix
Link the keg that was linked before migration. Don't use
newformula.installed_prefix to detect keg to link, because it can break
things (i.e. if intalled formula is outdated, then
newformula.installed_prefix can be not the same as installed prefix
before update).

Closes Homebrew/homebrew#42857.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-15 20:16:32 +08:00
Vlad Shablinsky
9736159c03 migrator: don't link newname if oldname isn't linked
- link newname only if oldname used to be linked
- optlink newname only if oldname used to be optlinked.
2015-08-15 20:16:31 +08:00
Vlad Shablinsky
2c1d8bcf65 migrator: check if old_opt_record exist before using realpath
- check if old_opt_record exist before using realpath
- don’t check old_opt_record.exist? in link_old_opt
  because it doesn’t have to exist.
2015-08-15 20:16:31 +08:00
Xu Cheng
3c45e1e81d update: only compute tapd_basename when necessary 2015-08-15 18:32:22 +08:00
Xu Cheng
0bf2f92f46 outdated: remove unnecessary nested if 2015-08-15 16:18:17 +08:00
Xu Cheng
8a766c4768 Formulary.to_rack: follow the symlink 2015-08-15 16:12:42 +08:00
Xu Cheng
c518e50320 install: f.oldname can be nil 2015-08-15 15:56:57 +08:00
Tim D. Smith
3a535ed36b make path instead of symlink for lib/R
Moves us towards being able to support formulae that install R bindings,
like nonpareil in homebrew-science.

Some discussion in Homebrew/homebrew-science#2559.

Closes Homebrew/homebrew#42539.
2015-08-15 00:14:38 -07:00
Mike McQuaid
02d8bfe10b install: mention if installed formula isn't migrated.
Closes Homebrew/homebrew#42940.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-14 15:18:45 +01:00
Mike McQuaid
49dce3e7ae outdated: check if formula needs to be migrated.
Closes Homebrew/homebrew#42938.
2015-08-14 15:18:45 +01:00
Baptiste Fontaine
3d7c38c736 doctor: suggest to install git if the system one is outdated
Closes Homebrew/homebrew#42934.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-08-14 12:06:57 +02:00
Xu Cheng
5414597913 cleanup: avoid duplicated logic
Closes Homebrew/homebrew#42900.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-14 15:52:57 +08:00
Xu Cheng
203cecb463 add Formula.racks
Also exclude symlink when enumerating installed racks.
2015-08-14 15:52:56 +08:00
Vlad Shablinsky
c7a484824c ocaml: rename from objective-caml
Closes Homebrew/homebrew#42851.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-14 08:42:07 +01:00
Xu Cheng
d5535bf564 doc: use relative links 2015-08-13 18:00:24 +08:00
Mike McQuaid
83ab0acfc0 test-bot: remove custom $HOME on --cleanup. 2015-08-13 10:55:29 +01:00