Commit Graph
1150 Commits
Author SHA1 Message Date
Jack Nagel c3fc01ce60 Remove unused variable 2014-02-23 23:04:44 -05:00
Adam Vandenberg c87736e7b9 ignore skip_clean :all 2014-02-23 15:53:26 -08:00
Adam Vandenberg 028b8087b2 add doctor check for HOMEBREW_KEEP_INFO 2014-02-23 08:31:03 -08:00
Adam Vandenberg 840793ca2c Always keep info files
Closes #26659.
2014-02-23 08:30:50 -08:00
Jack Nagel 5be3c17a48 create: make conditional more obvious 2014-02-22 20:17:04 -05:00
Jack Nagel 1b67308076 create: pull requires out of method 2014-02-22 20:17:04 -05:00
Jack Nagel ae26f1c2d5 Update method call 2014-02-22 20:17:04 -05:00
Mike McQuaid 8b4e80f3b6 bottle: detail what a new regex should match. 2014-02-22 17:15:28 +00:00
Jack Nagel 3e5ae57a60 Move Formula.class_s to Formulary 2014-02-21 00:46:03 -05:00
Drew Rodman c9bccb2187 Add DownloadError to catch a broader range of resource download errors.
Adding a broader exception class allows for errors raised in Resource.fetch
to be caught in upgrade and prevent the process from being killed when
a download fails. This should resolve issue 18364.

Fixes #18364.
Closes #26618.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-02-18 15:08:03 -05:00
Jack Nagel 3df0a13a6a search: use a queue to collect errors
The threading in the tap search code makes handling errors difficult. If
an API-related error is raised in one thread, it is likely to be raised
in each of the rest as well. This results in duplicated error messages,
which is ugly and bad UX.

This patch adds a synchronized queue to collect these exceptions. The
first one added to the queue is re-raised after all operations are
complete.

It's not ideal, but it's minimally invasive and I don't have the energy
or time to do a rewrite.
2014-02-16 23:19:09 -05:00
Mike McQuaid f95d539566 audit: handle recommended/optional options better. 2014-02-16 22:35:14 +00:00
Mike McQuaid 870fb34316 audit: whitelist pyobject3 use of ARGV. 2014-02-16 22:10:22 +00:00
Mike McQuaid 5c1feb6773 versions: ignore validation errors.
References #26748.
2014-02-16 18:35:33 +00:00
Mike McQuaid 73194f224a bottle: fail if there is no stable version.
Closes #26742.
2014-02-15 11:28:48 +00:00
Jack Nagel b5ec3918f6 Use a more accurate method name and drop unhelpful block 2014-02-13 23:22:43 -05:00
Jack Nagel 490f7d0526 Pass the string instead of reconstructing it from a regexp 2014-02-12 13:59:18 -05:00
Adam Vandenberg cc1b430c5b Revert "Recognize --head as an alias for --HEAD"
This reverts commit c32ab0a35a.

There are other hard-coded uses of HEAD, in build_options for instance.
These all need to be fixed before enabling this.
2014-02-11 21:25:26 -08:00
Misty De Meo c32ab0a35a Recognize --head as an alias for --HEAD
Homebrew currently recognizes "--head" during the install process, but
rather than actually fetch HEAD it just nags the user to use the
correct option.	Since we recognize the spelling anyway, this just
promotes the lowercase version to an official alias.

Closes #26555.
2014-02-09 15:44:49 -08:00
Mike McQuaid d8076311bc bottle: fix --write messages. 2014-02-09 14:34:50 +00:00
Mike McQuaid 7c8f922afd bottle: make --write handle both quotes styles. 2014-02-09 14:34:50 +00:00
Jack Nagel 0e13b9ea36 Use GitHub wrapper for private tap check 2014-02-08 20:41:11 -05:00
Jack Nagel 4ff62bd42f Drop unnecessary map + compact in search_tap 2014-02-08 17:53:08 -05:00
Jack Nagel e742019114 Prevent repeated warnings when GitHub API rate limit is exceeded 2014-02-08 16:04:53 -05:00
Jack Nagel 013482bf94 Raise only GitHub::Error from GitHub.open 2014-02-08 16:04:53 -05:00
Jack Nagel 0a7767b247 Parse JSON early in GitHub module 2014-02-08 16:04:53 -05:00
Jack Nagel 813cad6e1d Don't mutate argument in search_tap 2014-02-08 16:04:52 -05:00
Mike McQuaid 65931499f6 bottle: improve bottle commit writing. 2014-01-31 19:07:57 +01:00
Mike McQuaid 11be9bd8bf bottle: show diff before trying to commit. 2014-01-30 16:58:12 +01:00
aereal b7ea24b766 Make brew tap error message more clear
Closes #25813.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-01-26 17:33:12 -06:00
Frizlab 222864afc8 upgrade: fix output when no packages to upgrade.
When upgrading, if the only package to upgrade is a
pinned package, the output looked like that:
	==> Upgrading 0 packages, with result:

	==> Not upgrading 1 pinned package:
	<<package_name & version>>

The blank line is not beautiful. This commit fixes
the output and replaces with:
	==> No packages to upgrade
	==> Not upgrading 1 pinned package:
	<<package_name & version>>

Closes #26157.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-01-26 18:04:20 +01:00
Mike McQuaid 0313168fc9 bottle: only print relocations with --verbose. 2014-01-20 15:26:31 -08:00
Mike McQuaid 0d2c3d6d01 bottle: use new quoting style. 2014-01-19 10:06:46 -08:00
Mike McQuaid 7c95914a41 search: handle tap not found and suggest update.
Closes #25706.
Closes #25682.
2014-01-09 17:20:54 +00:00
Christian Moritz 2796223bef create: fix typos
Closes #25709.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-01-07 12:10:11 +00:00
Mike McQuaid 2ed303f323 create: always use double quotes. 2014-01-07 08:11:02 +00:00
Mike McQuaid 21b75643d8 bottle: improve "not installed" message.
Fixes #25546.
2014-01-04 14:50:13 +00:00
Mike McQuaid 0496ebe3ea install, update: AlreadyTappedError never raised. 2014-01-03 21:57:06 +00:00
Mike McQuaid e901c920a1 tap: never throw AlreadyTappedError.
Just make it a warning instead.

Closes #25511.
Closes #25617.
2014-01-03 21:56:57 +00:00
Mike McQuaid c6f8928578 homebrew-python has moved to Homebrew org. 2013-12-28 12:14:38 +00:00
Josh Tilles 67afe0b600 Replace template’s j1 with deparallelize
Solely because I think `ENV.deparallelize` is *way* clearer than
`ENV.j1`, at least to the uninitiated.

Also, updating the template will reduce the number of `ENV.j1`s that
persist because the Homebrew maintainers want clean histories of
formulae. Ideally, this change should prevent any more cases from being
introduced!

Closes #25431.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-12-27 16:58:55 -06:00
Jack Nagel 1d04e600a9 bottle: fix updating formulae with sha256 checksums 2013-12-27 16:43:34 -06:00
Jack Nagel 6206773253 bottle: use formula path accessor 2013-12-27 16:43:34 -06:00
Jack Nagel e67bdb1351 Don't send, just call the method directly 2013-12-27 16:19:43 -06:00
Jack Nagel 53179eedbe prune: remove unnecessary .sort 2013-12-21 21:37:26 -06:00
Jack Nagel 4c7cbdff73 bottle: extract method for enumerating files that match a string
This brings a (small) performance improvement as we yield the files as
they are output by fgrep rather than waiting until fgrep is done to do
any work.
2013-12-17 21:13:23 -06:00
Jack Nagel b3d1c1769c versions: improve performance of rev_list 2013-12-17 20:43:45 -06:00
Mike McQuaid 3c3155dfdf doctor: don't complain about unmigrated remote. 2013-12-17 23:40:21 +00:00
Mike McQuaid 257d189d78 doctor: fix autocrlf set command.
Fixes #25282.
2013-12-17 16:34:01 +00:00
Mike McQuaid 4a4ca0bb43 doctor: add instructions for remote migration. 2013-12-17 16:25:51 +00:00