| Age | Commit message (Collapse) | Author |
|
Re: Homebrew/homebrew#9925, many others.
|
|
Otherwise stable mirrors will be considered when the devel download
fails.
Fixes Homebrew/homebrew#9910.
|
|
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
If HOMEBREW_KEEP_INFO environment variable is set:
- Do not symlink the info directory file (aka 'share/info/dir')
otherwise it gets overwritten by next installed brew.
- Install an entry in the directory for each linked info file when the
brew is linked.
- Uninstall the entry when the brew is unlinked.
Closes Homebrew/homebrew#9700.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
The FileUtils.cp_r function with a wildcard doesn't copy hidden files
(starting with a dot) Instead of copying everything selected by *,
select all the folder content.
See: http://www.ruby-doc.org/core-1.9.3/Dir.html#method-c-glob
Closes Homebrew/homebrew#8873.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
When we can't detect a name from the URL, just ask the user.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
Ocaml packages that need to install here will cause the site-lib
directory to be created, and the symlink in the ocaml keg will work as
intended. This is necessary for the ocaml bottle to work properly.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
Fixes Homebrew/homebrew#9856.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
|
|
|
|
Closes Homebrew/homebrew#9844.
|
|
|
|
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
|
|
Now we handle some things more explicitly and in the process get rid of
the blanket rescue on the mktemp block, which is something of an
antipattern.
By unloading the class *after* determining the version, we avoid the
case where the class had previously been unloaded but Formula.factory
failed, and trying to unload the nonexistent class results in a
NameError. Doing it this way, we avoid having to rescue NameError and
thereby avoid hiding other cases where it may occur.
We also rescue TypeError which gets us past a few more bad formula in
the history in some instances.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
Regexp#source retains escape sequences as is, so searching for formulae
like 'pure-ftpd' doesn't work.
Closes Homebrew/homebrew#9597.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
The script was lacking structure and had grown a number of one-off hacks
that would be better as reusable functions. So,
- give each subcommand that has completions it's own function
- move completion of formulae, installed brews, and outdated brews into
reusable functions
- introduce a general __brewcomp() function that takes a string of tab,
space, and/or newline separated items and converts all seperators to
newlines, and then generates a reply with compgen().
These changes should allow for easier addition of new features in the
future.
As a bonus, completion for `brew log` will include git-log options if
the git completion script is also loaded.
_brew_to_completion() is kept around for compatiblity.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
There are a few false positives where the string 'devel' occurs in other
contexts.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
This commit adds a `devel` entry to the DSL, allowing formulae to
specify an unstable branch.
`devel` takes a block, which should contain standard `url` and `md5`
fields (and `version`, if necessary). This must come after the standard
DSL fields.
This commit also migrates over all formulae currently using `devel` to
the new syntax, as well as formulae which used `head` for non-VCS urls.
The new syntax is also available for `stable` and `bottle`. `stable` is
an option alongside the old syntax. `bottle` replaces the old syntax.
Note that the @stable ivar in Formula has been renamed to @standard,
and the @bottle ivar has been renamed to @bottle_url.
Closes Homebrew/homebrew#9735.
Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
|
|
We need the ARGV extension now that we call ARGV.build_bottle? in
set_cpu_cflags.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
Fixes Homebrew/homebrew#9739.
|
|
Closes Homebrew/homebrew#8960.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
|
|
Appending an empty string results in an extraneous space character.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
Closes Homebrew/homebrew#9350.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
|
|
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
|
|
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
|
|
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
|
|
Closes Homebrew/homebrew#9622.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
|
|
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
|
|
Installing a formula via `brew install` may trigger upgrades of its
dependencies if the dependencies are installed but outdated. However, we
never unlinked the existing keg in FormulaInstaller#install_dependency
which caused the link step to fail.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
Instead of returning a full list of results after parsing, yield and
print each result as it's found for a snappier user experience.
Closes Homebrew/homebrew#9576.
Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
|
|
|
|
The v3 API currently lacks a search feature. Use the v2 API instead for
much faster pull request filtering.
Closes Homebrew/homebrew#9592.
Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
|
|
I had EDITOR set to /usr/local/bin/mate set and got the whole of /usr/local opened in TextMate which takes fricking forever!
|
|
Just a cosmetic nicety.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
Fixes Homebrew/homebrew#9575.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
And document a bit more why this hack is present.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
Allow the use of a Homebrewed gcc-4.2 in order to support homebrew-alt's
apple-gcc42 formula.
This also removes the :force filtering for the gcc-4.2 check error.
Closes Homebrew/homebrew#9384.
Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
|
|
When search can't find any local results, hit the GitHub API and search
the titles of pending pull requests. This will help people find the many
proposed formulae and prevent them from wasting time duplicating them.
Closes Homebrew/homebrew#9018.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
Let's choose the first \d{2,} as the build number, as it is the most
likely to indicate significant changes, and we need something to use for
comparison when selecting compilers.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
This is silly, but I am no Rubyist and I don't have time to
figure out why Formula.factory(foo).url works as expected but
Formula.factory(foo).version does not.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|