Jack Nagel
528072f7d7
GitDownloadStrategy: force checkouts
...
Local changes to the cached repository should not cause fetch or install
to error out.
2013-02-17 15:54:22 -06:00
Jack Nagel
6d1c6dcdea
GitDownloadStrategy: reset after checkout during updates
...
Otherwise, if the local branch is behind the remote branch, or has
diverged, we will stage the wrong revision.
2013-02-17 15:53:35 -06:00
Jack Nagel
145647fc45
GitDownloadStrategy: factor out checkout args
2013-02-17 15:43:16 -06:00
Jack Nagel
612745352d
GitDownloadStrategy: generalize has_tag? to has_ref?
2013-02-17 15:41:24 -06:00
Jack Nagel
f62818210d
info: open history pages for all specified formulae
...
Closes Homebrew/homebrew#17852 .
2013-02-16 21:20:17 -06:00
Jack Nagel
57337a0748
Fix serialization of used_options
2013-02-16 21:19:35 -06:00
Jack Nagel
f93b4f44ad
Fix option flag naming for tap deps
...
Fixes Homebrew/homebrew#17866 .
2013-02-16 17:22:11 -06:00
Jack Nagel
866b3cf6a8
Add test for String#get_make_var
2013-02-15 00:39:22 -06:00
Jack Nagel
b8b014036e
Remove redundant return
2013-02-15 00:36:03 -06:00
Jack Nagel
9fd5953ed9
Make this more idiomatic
2013-02-15 00:35:52 -06:00
Jack Nagel
2ef79d1387
GitDownloadStrategy: default to remote HEAD during checkout
2013-02-14 17:29:59 -06:00
Jack Nagel
166e262312
GitDownloadStrategy: quiet reset in non-verbose mode
2013-02-14 17:29:59 -06:00
Jack Nagel
5f5d6ace5f
GitDownloadStrategy: only fetch from remote when necessary
...
When we are building from a tag, and that tag is already present in the
cached repository, we don't to hit the network; everything we need
already exists.
2013-02-14 17:29:58 -06:00
Jack Nagel
02ad6442e7
GitDownloadStrategy: extract checkout from #stage
2013-02-14 17:29:58 -06:00
Jack Nagel
8b27989d11
GitDownloadStrategy: split up submodule update and checkout
2013-02-14 17:29:58 -06:00
Jack Nagel
e186d9a136
GitDownloadStrategy: split #fetch into several methods
2013-02-14 17:29:58 -06:00
Adam Vandenberg
37b28741f2
doctor: make brew link more clear
...
Closes Homebrew/homebrew#17805 .
2013-02-12 22:30:49 -08:00
Jack Nagel
3d5bda3f0a
Simplify this regexp
2013-02-12 16:28:50 -06:00
Jack Nagel
71f85300b4
Establish a convention for Requirement names
...
The name attribute of requirements is used when generating options for
the :optional and :recommended dependency tags.
Unless otherwise specified, the name attribute of a Requirement will be
populated by stripping any module prefixes from the beginning and
"Dependency" or "Requirement" from end of the class name and downcasing
the result.
Closes Homebrew/homebrew#17759 .
2013-02-12 16:26:10 -06:00
Adam Vandenberg
d71c8beac9
formula: cinch up formatting
2013-02-11 21:33:43 -08:00
Jack Nagel
a63fa4356a
Remove dead code
...
This code only existed to support very old formula syntax, which was
otherwise removed in e6b97bebd99779b52462dcd387191d804fc95b93.
2013-02-11 21:06:03 -06:00
Jack Nagel
248891fde1
Avoid nil in URL specs
2013-02-11 20:52:07 -06:00
Jack Nagel
e22af69149
Catch JSON decoding errors in Apache download strategy
...
c.f. Homebrew/homebrew#17772 .
2013-02-11 17:14:26 -06:00
Jack Nagel
c16ee6f300
Don't reinvent IndexError here
2013-02-10 21:02:27 -06:00
Jack Nagel
7b8f4b3d19
kill dead code
2013-02-10 20:32:18 -06:00
Jack Nagel
8e2b8c1419
CurlDownloadStrategy: remove pointless type introspection
2013-02-10 20:10:15 -06:00
Jack Nagel
3e9241312d
Add :libltdl dep for libtool's libltdl
...
The :libtool dep is implicitly a build-time dep; :libltdl can be used
for software that uses the ltdl library at runtime.
2013-02-10 19:28:14 -06:00
Jack Nagel
803649bf04
Shrink DependencyCollector#parse_symbol_spec and add tests
2013-02-10 19:27:33 -06:00
Jack Nagel
b38d555030
Fix Regexp encoding under 1.9/2.0
2013-02-10 15:26:07 -06:00
Adam Vandenberg
b85bf58007
search homebrew-x11
2013-02-10 11:15:20 -08:00
Adam Vandenberg
12d2900231
Show permission changes in debug mode
2013-02-10 08:55:09 -08:00
Jack Nagel
cf82e19090
ConflictRequirement: pass argument to superclass initalizer
2013-02-09 18:33:26 -06:00
Jack Nagel
97d3ae1775
Extract formula locks into a class
2013-02-09 18:19:50 -06:00
Jack Nagel
97f9f93f25
build: ignore non-explicit build-time dependencies
...
Given the following dependency tree:
foo
bar (bottled)
baz (build-time only)
We skip installing baz because it is a build-time dependency of
something that is bottled. However, during the build of foo, this filter
is not applied because the dependent-dep relationship is not considered
at this stage. If baz wasn't installed prior to this build, fixopt(baz)
will fail.
Further, build-time deps are tightly coupled to the formula they are
specified by, and we shouldn't rely on them coming from dependencies
several levels down.
Fixes Homebrew/homebrew#17697 .
2013-02-09 14:37:36 -06:00
Mike McQuaid
1e47298456
Revert "brew: move to Library/brew.rb"
...
This reverts commit 67d06b84d00a17cf43770eedf34e37e50e209741.
Closes Homebrew/homebrew#17683 .
Closes Homebrew/homebrew#17685 .
2013-02-08 08:55:53 -08:00
Mike McQuaid
551005acdb
Revert "brew: use a shell wrapper script for brew"
...
This reverts commit 225546a3ee2d3f22e185e47d4db6f6716a56669b.
2013-02-08 08:55:42 -08:00
Jack Nagel
b65398c549
LanguageModuleDependency: foward args to superclass initalizer
2013-02-08 00:12:49 -06:00
Jack Nagel
d547102253
debrew: restore ARGV even when IRB.setup raises
2013-02-07 22:31:05 -06:00
Mike McQuaid
faa066b109
brew: use a shell wrapper script for brew
...
This allows us to force using the system Ruby on OSX but allow
the development of Homebrew for Linux or Windows to not rely
on OSX paths.
Closes Homebrew/homebrew#17548 .
2013-02-07 17:53:49 -08:00
Mike McQuaid
7344149f52
brew: move to Library/brew.rb
2013-02-07 17:48:29 -08:00
Jack Nagel
0b425178ec
Reduce footprint of readline hack
2013-02-07 19:02:20 -06:00
Jack Nagel
608fd55809
Fix typo
2013-02-07 18:58:26 -06:00
Adam Vandenberg
456523fc3f
Manpage: remove brew install --force
.
...
Closes Homebrew/homebrew#17654 .
2013-02-07 16:34:38 -08:00
Jack Nagel
603bcb6cc8
audit: allow alpha.gnu.org URLs
2013-02-07 15:34:13 -06:00
Jack Nagel
f227695465
superenv bin directory is under HOMEBREW_REPOSITORY
2013-02-07 13:33:04 -06:00
Jack Nagel
ef6d01fc8f
download_strategy: move requires out of method
...
This can cause subtle issues when an exception is marshaled between the
build process and the main Homebrew process, as the marshaled exception
may contain URI objects even when the main Homebrew process has not
loaded the URI library.
Closes Homebrew/homebrew#17642 .
2013-02-07 12:45:37 -06:00
Jack Nagel
7fbeb0df3d
MacOSVersion -> MacOS::Version
2013-02-07 12:39:54 -06:00
Jack Nagel
b41bb64c7a
Flesh out MacOSVersion tests
2013-02-07 12:35:15 -06:00
Mike McQuaid
61c7a99cc8
Print formula plist_manual caveat unless loaded.
2013-02-06 22:27:57 -08:00
Jack Nagel
ba2717fb19
Version: remove pointless private call
2013-02-06 22:25:02 -06:00