11689 Commits

Author SHA1 Message Date
Uladzislau Shablinski
6ef96d0be4 Update tests for new install behaviour 2016-12-03 04:42:04 +03:00
Uladzislau Shablinski
73a1daa669 cmd/install: allow to install any spec
* installing HEAD keg_only should be possible only if:
  1.
    - Old version installed differs from new one and optlinked
    - `--force` flag is passed
    - HEAD is seriously outdated or outdated with `--fetch-HEAD`
  or 2.
    - Old version installed differs from new one and not optlinked
  or 3.
    - This formula is not installed

* installing keg_only should be possible only if:
  1.
    - Old version installed differs from new one and optlinked
    - `--force` flag is passed
  or 2.
    - Old version installed differs from new one and not optlinked
  or 3.
    - This formula is not installed

* installing HEAD should be possible only if:
  1.
    - Old HEAD is seriously outdated or outdated with `--fetch-HEAD`
  or 2.
    - HEAD is not installed

* installing stable or devel should be possible only if:
  - Old version installed differs from new one
2016-12-03 04:42:04 +03:00
Uladzislau Shablinski
52526c962b formula: add new methods
* `Formula#linked?` returns true if formula linked
* `Formula#optlinked?` returns true if formula linked to opt
  formula installed to the Cellar
* `Formula#prefix_linked?` returns true if linked keg points to the prefix
  passed as an argument
* `Formula#linked_version` to get linked version of the formula
2016-12-03 04:42:04 +03:00
Uladzislau Shablinski
7b24d1d2d1 download_strategy: keep commit short if possible 2016-12-03 04:42:04 +03:00
Mike McQuaid
5bbd64141e Merge pull request #1604 from bfontaine/pkill
update.sh: Use full path to pkill
2016-12-02 10:01:09 +00:00
Baptiste Fontaine
bff8e8440e update.sh: Use full path to pkill
Fixes #1600.
2016-12-01 20:59:42 +01:00
Mike McQuaid
8f82e89d0b README: update license name. 2016-12-01 16:11:30 +00:00
Mike McQuaid
0c82ccece2 LICENSE: use more standard BSD 2-Clause text. 2016-12-01 13:05:29 +00:00
Mike McQuaid
eb20f594a2 ISSUE_TEMPLATE: point people to the right repo. 2016-11-30 11:38:17 +00:00
Markus Reiter
0a6cecbaf8 Fix tests. 2016-11-29 11:43:45 +01:00
Alyssa Ross
2b68da8252 formula: runtime deps of build deps aren't runtime
Fixes #1554 (but only for new installations)
2016-11-29 01:39:02 +00:00
Markus Reiter
e0b93f1537 Also fail if symlinked artifacts already exist. 2016-11-28 14:01:06 +01:00
Markus Reiter
e63efb3fe4 Warn when overwriting an artifact. 2016-11-28 14:01:06 +01:00
Markus Reiter
9a29bd35e6 Fail if cask source already exists. 2016-11-28 13:38:49 +01:00
Mike McQuaid
0f529dae10 Merge pull request #1573 from sorin-ionescu/fix-xcode-version-comparison
Fix macOS version comparison
1.1.2
2016-11-28 08:46:20 +00:00
Mike McQuaid
a35d0fe8f0 Merge pull request #1582 from rwhogg/sha1-gone
docs/Checksum_Deprecation.md: Note that SHA-1 now blocks installation
2016-11-28 08:45:41 +00:00
Mike McQuaid
0b762dc3f1 Merge pull request #1588 from rwhogg/make-deps-public
dependency_collector: Make ant_dep and xz_dep public
2016-11-28 08:27:34 +00:00
Bob W. Hogg
227e69048a dependency_collector: Make ant_dep and xz_dep public
They were already public on macOS, but they were made
private by mistake on all other platforms.
DependencyCollector.tar_needs_xz_dependency? depends
on xz_dep being public, so there's no turning back now :(
2016-11-28 03:09:34 +00:00
Mike McQuaid
84b3c57086 Merge pull request #1581 from MikeMcQuaid/rubocop-exclude-vendor
rubocop: exclude more files.
2016-11-27 08:25:17 +00:00
Mike McQuaid
019b12063d Merge pull request #1574 from MikeMcQuaid/tap-new-travis-update
tap-new: cleanup and update Travis configuration.
2016-11-26 22:20:20 +00:00
Mike McQuaid
726045b2f4 rubocop: exclude more files.
We never want to check these for any e.g. taps that use them.
2016-11-26 21:29:02 +00:00
Sorin Ionescu
282c0a30b6 Fix macOS version comparison 2016-11-26 13:59:55 -05:00
Mike McQuaid
3e3df9568e Merge pull request #1580 from MikeMcQuaid/fix-uses-test
uses_test: don't rely on output order.
2016-11-26 18:16:40 +00:00
Bob W. Hogg
bf05818a8a docs/Checksum_Deprecation.md: Note that SHA-1 now blocks installation
This document was out of date as of https://github.com/Homebrew/brew/pull/1451
2016-11-26 17:27:02 +00:00
Mike McQuaid
e465670942 Merge pull request #1579 from MikeMcQuaid/doctor-allow-jenkins
diagnostic: silence a Jenkins doctor warning.
2016-11-26 17:26:55 +00:00
Mike McQuaid
e330047ff9 diagnostic: silence a Jenkins doctor warning.
Allow our Jenkins CI testing for Homebrew/brew to live outside of
`/usr/local` without complaint (as it's not using any binary packages
anyway).
2016-11-26 16:32:48 +00:00
Mike McQuaid
22b121c4c1 tap-new: cleanup and update Travis configuration.
- Use macOS Sierra 10.12 and Xcode 8.
- Add indentation.
2016-11-26 16:30:43 +00:00
Mike McQuaid
b851935484 uses_test: don't rely on output order.
I've seen this vary.
2016-11-26 16:21:27 +00:00
Mike McQuaid
78fdb470cb Merge pull request #1578 from MikeMcQuaid/analytics-install-hide-message
update-report: allow skipping analytics message.
2016-11-26 15:57:06 +00:00
Mike McQuaid
d41e2ea5e8 update-report: allow skipping analytics message.
This is used by the install script so it can simplify it's logic and
make the analytics messaging more prominent.
2016-11-26 15:14:21 +00:00
Mike McQuaid
5dd8f45cb8 Merge pull request #1577 from MikeMcQuaid/more-analytics-tweaks
update-report: further tweak analytics output.
2016-11-26 14:31:45 +00:00
Mike McQuaid
118f052057 Merge pull request #1576 from MikeMcQuaid/diagnostic-allow-outdated-travis
diagnostic: silence outdated Travis Xcode warning.
2016-11-26 14:03:25 +00:00
Mike McQuaid
3469190c30 update-report: further tweak analytics output.
There were some bugs with the use of `HOMEBREW_NO_ANALYTICS_THIS_RUN`
and some output glitches I missed with the previous PR (#1575).
2016-11-26 13:58:41 +00:00
Mike McQuaid
578fff7872 Merge pull request #1575 from MikeMcQuaid/tweak-analytics-message
update-report: further improve analytics messaging
2016-11-26 13:45:42 +00:00
Mike McQuaid
025e53c321 diagnostic: silence outdated Travis Xcode warning.
This doesn't add any value and stops us from testing `brew doctor` and
others from running `brew doctor` on Travis CI.
2016-11-26 13:09:59 +00:00
Mike McQuaid
7cd5ddfa65 update-report: further improve analytics messaging
- Don't output the analytics message and mark it as read if
`HOMEBREW_NO_ANALYTICS_THIS_RUN` is set. This mostly simplifies the
installer code where we can display the message ourselves there rather
than having `brew update` print it out sometimes and not others (i.e.
when there's no system Git installed).
- Use the shell's audible bell to nudge people to actually read this
message (and give them less excuse to complain when they don't).
- Add an extra newline and bold all the analytics messaging so it's
more visible in the output.
2016-11-26 12:56:02 +00:00
Mike McQuaid
1f3351f0ca Merge pull request #1572 from mgol/patch-1
Change my site address
2016-11-26 12:32:06 +00:00
Michał Gołębiowski
2b34e67af7 Change my site address
I no longer maintain my former site so it's better to link to my GitHub account.
2016-11-25 23:33:34 +01:00
ilovezfs
d4f8e2fa18 Merge pull request #1571 from MikeMcQuaid/admin-doctor
Revert "Fix early exit condition for check_for_member_of_admin_group"
2016-11-25 17:35:28 +00:00
Mike McQuaid
771ae5c528 Revert "Merge pull request #1562 from woodruffw/check-admin-group"
This reverts commit 7f13b37b903564e2a64cea982d6b84d1aa6b800b, reversing
changes made to 62e0ecdaafbc6779205908c7ab191c884473afd6.
2016-11-25 16:44:33 +00:00
Mike McQuaid
64cb52ef3e Revert "Merge pull request #1567 from cesarandreu/fix-diagnostic-conditonal"
This reverts commit 89c3348923c3450d8d32f1252abd53209b39c288, reversing
changes made to 7f13b37b903564e2a64cea982d6b84d1aa6b800b.
2016-11-25 16:44:30 +00:00
Mike McQuaid
89c3348923 Merge pull request #1567 from cesarandreu/fix-diagnostic-conditonal
Fix early exit condition for check_for_member_of_admin_group
2016-11-25 13:17:26 +00:00
Cesar Andreu
3b53418a2b Fix early exit condition for check_for_member_of_admin_group 2016-11-25 02:30:50 -08:00
Mike McQuaid
7f13b37b90 Merge pull request #1562 from woodruffw/check-admin-group
diagnostic: check if the user is a member of the admin group.
2016-11-25 08:11:03 +00:00
Mike McQuaid
62e0ecdaaf Merge pull request #1559 from MikeMcQuaid/unsupported-better-exceptions
exceptions: better handle unsupported macOS versions.
2016-11-24 21:15:39 +00:00
William Woodruff
bb0e683bc4
diagnostic: check if the user is a member of the admin group.
Non-administrative users are unable to run `brew linkapps` (and possibly other
commands) under normal circumstances.
2016-11-24 12:26:50 -05:00
Josh Hagins
949a3b62e7 Merge pull request #1547 from umireon/cask-uninstall-symlink
cask: Delete package dir if it is symlink on the uninstall
2016-11-24 12:16:42 -05:00
Mike McQuaid
f8aa057b07 Merge pull request #1561 from tsekityam/patch-2
Fix broken link
2016-11-24 11:41:43 +00:00
Tse Kit Yam
2279751103 Fix broken link 2016-11-24 18:26:01 +08:00
Mike McQuaid
3c77faeb14 exceptions: better handle unsupported macOS versions.
Don’t fail on `OS::ISSUES_URL` being missing (which happens on
unsupported macOS versions) and instead tell people to not file issues.
2016-11-24 08:54:38 +00:00