Commit Graph
11569 Commits
Author SHA1 Message Date
Mike McQuaid 5fc4cabdeb tap-new: fix symlink creation.
Ensure the full HOMEBREW_TAP_DIR path is created before deleting and
creating the symlink for it. This ensures that non-`homebrew` taps will
have the necessary username/organisation folder created.

Fixes #2378.
2017-03-22 21:23:00 +00:00
Mike McQuaidandilovezfs b41a88eac4 update-report: check migration symlinks.
Check if `HOMEBREW_CELLAR/old_name` is a symlink. If so, it's already
been migrated so can be skipped.
2017-03-21 15:21:23 -07:00
Mike McQuaidandGitHub 411172b9ad Merge pull request #2375 from maxim-belkin/tests-no-temp
tests: unset HOMEBREW_TEMP
2017-03-21 17:32:39 +00:00
Mike McQuaidandGitHub 4117d198cc Merge pull request #1732 from zmwangx/hint-migrations
Hint at new location of migrated formulae
2017-03-21 17:31:31 +00:00
Maxim Belkin 8fa99fb879 tests: unset HOMEBREW_TEMP
Setting `HOMEBREW_TEMP` env. var [currently] breaks tests (`brew
tests`). Although this behavior looks like a bug, the solution is
straightforward: unset `HOMEBREW_TEMP`.
2017-03-21 09:31:09 -05:00
Mike McQuaidandGitHub 7095b9b3c7 Merge pull request #2348 from MikeMcQuaid/up-to-date-requirement-formulae
formula_installer: need up to date requirement formulae.
2017-03-21 14:49:31 +01:00
Mike McQuaidandGitHub 7d068d468d Merge pull request #2365 from MikeMcQuaid/audit-provided-by-macos
audit: check system dupe deps on new formulae.
2017-03-21 14:49:22 +01:00
Mike McQuaidandGitHub b3a32070fe Merge pull request #2366 from MikeMcQuaid/deprecate-tex
audit: deprecate depends_on :tex.
2017-03-21 14:47:52 +01:00
Mike McQuaidandGitHub ec0737d71f Merge pull request #2370 from MikeMcQuaid/update-migrate-all-formula
update-report: migrate all formulae every time.
2017-03-21 14:40:07 +01:00
Mike McQuaid f59eb358c2 missing_formula: subsume historic logic.
These methods belong together so combine them in a single class to
provide a simpler API.
2017-03-20 20:37:12 +01:00
Mike McQuaid 80e95b684e blacklist: move to missing_formula class instead.
This will allow extending this class so it can be used by more than
just blacklisting.
2017-03-20 18:20:31 +02:00
Mike McQuaid 623c95b3f8 cmd/log: improve output messaging.
This wasn’t adapted to the new, multiple repository world.
2017-03-20 18:20:31 +02:00
Mike McQuaid 8cedd62750 search: tweak specific formula match formatting. 2017-03-20 18:20:31 +02:00
Mike McQuaid ac10b2ab50 Tap: add from_path helper method.
This makes it easier to turn an arbitrary path into a tap path.
2017-03-20 18:20:31 +02:00
Zhiming WangandMike McQuaid 1c10a6260f Hint at new location of migrated formulae
Partial implementation of
https://github.com/Homebrew/brew-evolution/pull/15, along with the ability to
search for deleted formulae in git history (inspired by #1996) which is not
described in the proposal.

See also: #1371.
2017-03-20 18:20:31 +02:00
Mike McQuaid 4af8bdf111 update-report: migrate all formulae every time.
Unmigrated formulae cause hard-to-debug issues and relying on detection
on Git alone is faster but not comprehensive. Instead, iterate through
renamed, installed formulae every time and migrate them.

Closes #1770.
2017-03-20 18:10:28 +02:00
Mike McQuaid ae43415fb4 update-report: migrated formulae were not deleted.
The taps they were migrated to are auto-tapped if not already tapped
anyway so don't show them as deleted to avoid confusion.
2017-03-20 15:28:24 +02:00
Alex Dunn 00af5250f0 caveats: combine completion and function messages
Fixes https://github.com/Homebrew/homebrew-core/issues/10338.

Closes #2287.

Signed-off-by: Alex Dunn <dunn.alex@gmail.com>
2017-03-19 16:32:23 -07:00
Mike McQuaid 8efc0a608d audit: deprecate depends_on :tex.
This has known issues with our `ghostscript` formula, we can't test it
on CI and is a ludicrously heavy dependency that in many cases can be
avoided by upstream providing prebuilt documentation.
2017-03-19 20:46:31 +02:00
Mike McQuaid eadbd95d2c audit: check system dupe deps on new formulae.
Provide a gentle nudge to users to check if these dependencies are
definitely required.
2017-03-19 20:45:21 +02:00
JCountandGitHub 09a926f449 Merge pull request #2338 from JCount/audit-online-file-download
audit: online - limit download time based on HTTPS determination
2017-03-18 16:03:17 -04:00
ilovezfs 52d1d2cc3f upgrade: keg_only before non-keg_only formulae
Avoids unnecessary conflicts when a previously non-keg_only formula is
in the way by prioritizing keg_only before non-keg_only formulae.

This change is motivated by the upgrade of gnupg 2.0 to 2.1, since the
latter no longer depends on the gpg-agent formula, which, even if made
keg_only, still causes the link step to fail for 2.1, as gpg-agent's
non-keg version won't have been upgraded to the keg_only version at that
point (alphabetically gnupg precedes gpg-agent).
2017-03-17 12:39:43 -07:00
Mike McQuaidandGitHub ff77013f48 Merge pull request #2337 from sjackman/linux-system-config
Add extend/os/linux/system_config.rb
2017-03-17 16:48:51 +02:00
Mike McQuaidandGitHub a9cd74de59 Merge pull request #2279 from sjackman/determine_path
determine_path: Fix tests FormulaUnavailableError
2017-03-17 15:57:30 +02:00
Shaun Jackman 0d5a53ba2c Add extend/os/linux/system_config.rb
Report the Linux kernel, OS, and gcc versions.
2017-03-16 17:59:26 -07:00
JCount 5e8a9fa3f3 audit: online - limit download time based on HTTPS determination
Previously, the http_content_headers_and_checksum method always
downloaded the entire url, including headers. These downloads
periodically hang, outputting false positives or wreaking havoc on
the CI. Therefore, use curl's --max-time arg to prevent this by
setting a hard limit of 600 seconds when the entire file is going
to be used to detect whether the url can be changed to use the HTTPS
protocol instead of HTTP. Otherwise, if the url already is HTTPS, limit
the download time to 25 seconds since only the headers, not contents, matter.
2017-03-16 17:37:22 -04:00
Markus Reiter ed10135da4 Replace Hbc.load with CaskLoader.load. 2017-03-16 19:16:42 +01:00
Markus Reiter d7af864be0 Replace Hbc.path with CaskLoader.path. 2017-03-16 12:10:19 +01:00
Markus Reiter d1995dad4b Use a Formulary-like approach to load Casks. 2017-03-16 12:10:19 +01:00
Markus ReiterandGitHub c4d8b1696c Merge pull request #2309 from axiac/cask-outdated
add command 'cask outdated'
2017-03-16 11:37:49 +01:00
Markus Reiter 2c8544832e Add test for command help strings. 2017-03-16 09:00:57 +01:00
Valentin VĂLCIU 7532545140 add command 'cask outdated' 2017-03-15 22:58:25 +02:00
Markus Reiter e1670a9210 Remove sort from each_artifact. 2017-03-15 20:18:56 +01:00
Mike McQuaid 60f96df44d formula_installer: need up to date req formulae.
This makes them behave consistently to other dependencies. Otherwise
other checks for them being `installed?` will fail.

Fixes #2333
Closes #2302
Fixes https://github.com/Homebrew/homebrew-science/issues/5247
2017-03-15 19:29:16 +01:00
Mike McQuaidandGitHub 4d88cc4c41 Merge pull request #2326 from vszakats/sprot
secure urls + remove -k from in-doc curl command
2017-03-15 15:11:35 +00:00
Markus ReiterandGitHub e9e6dcf893 Merge pull request #2311 from nath/highlightInstalledCasks
Added highlighting of installed casks to cask search
2017-03-15 14:01:28 +01:00
Markus ReiterandGitHub 7685618a1c Merge pull request #2342 from reitermarkus/cask-dsl-param
Remove `dsl` parameter from `Cask::new`.
2017-03-14 22:33:13 +01:00
Viktor Szakats cc8f029f22 secure urls + remove -k from in-doc curl command 2017-03-14 17:27:11 +00:00
Markus Reiter 4f558f186a Remove dsl parameter from Cask::new. 2017-03-14 18:18:03 +01:00
Markus Reiter f6b1f88c3c Update RuboCop-Cask to 0.12.0. 2017-03-14 17:30:06 +01:00
Mike McQuaidandGitHub 7667b2f967 Merge pull request #2336 from sjackman/hardware-penryn-native
OPTIMIZATION_FLAGS: Use -march=native for Penryn
2017-03-14 07:56:16 +00:00
Nath Tumlin 48e4463f5b Fixed test case wording 2017-03-13 19:43:08 -05:00
Nath Tumlin b42ccece49 Style changes 2017-03-13 19:15:41 -05:00
Shaun Jackman ecb2246ab0 OPTIMIZATION_FLAGS: Use -march=native for Penryn
Use -march=native for Penryn as for other systems rather than
-march=core2 -msse4.1.
2017-03-13 15:54:20 -07:00
Nath Tumlin 2080c360e2 Added tests for highlight installed and fixed style errors 2017-03-13 17:52:32 -05:00
Markus Reiter 2b4c3ee1d7 Default to sudo: false for installer/uninstall :script. 2017-03-13 11:38:37 +01:00
Mike McQuaidandGitHub d962a781b1 Merge pull request #2329 from Homebrew/revert-1877-audit-wine-deps-exemption
Revert "audit: exempt wine's deps from the universal deprecation"
2017-03-13 07:35:00 +00:00
Markus ReiterandGitHub ad7c2e5416 Merge pull request #2328 from reitermarkus/installed-caskfile
Add `#installed_caskfile` method to `Cask` class.
2017-03-12 22:24:45 +01:00
Markus ReiterandGitHub 159e35b4c5 Merge pull request #2327 from reitermarkus/auditor
Use `CaskLoader.load_from_file` in `Auditor`.
2017-03-12 22:24:21 +01:00
William WoodruffandGitHub 2935823251 Merge pull request #2324 from woodruffw/skip-pointless-relocations
keg: Skip relocation when dylib ID/install name doesn't change.
2017-03-12 17:15:18 -04:00