106 Commits

Author SHA1 Message Date
Mike McQuaid
3d71826e6d bottle: remove unused variable. 2015-03-08 09:39:14 +00:00
Dominyk Tiller
12861686b8 checksums: switch to sha256 for bottles and new formulae
Closes Homebrew/homebrew#37164.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-03-05 14:45:39 +00:00
Mike McQuaid
8ec6245c18 bottle: fixup keg_contains method. 2015-02-26 19:13:10 +00:00
Mike McQuaid
30a8d8e470 bottle: --write: use canonical name with tap arg. 2015-02-23 21:29:50 +00:00
Xu Cheng
202dac2555 bottle: better match for formulea with stable do block
It will only work if the indent is correct.

Closes Homebrew/homebrew#37024.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-02-22 00:06:45 +08:00
Xu Cheng
1c8323f9cc bottle: revision is digits rather than string in the merge regex
Closes Homebrew/homebrew#37015.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-02-21 17:01:29 +08:00
Mike McQuaid
f60396f64a bottle: ignore go libexec path for stuff using go.
These paths cannot be removed and are just used for debug stacktraces so seem
to not be harmful for us to selectively ignore.

Closes Homebrew/homebrew#36894.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-02-20 15:39:34 +00:00
Mike McQuaid
8581330d3a bottle: use --root-url instead of --root_url 2014-11-24 08:25:05 +00:00
Jack Nagel
6f02314cba Add a factory method that accepts a formula object 2014-07-18 15:15:12 -05:00
Jack Nagel
49a97c280a Ask the filename object for the prefix 2014-07-18 15:15:12 -05:00
Jack Nagel
a87d2108ea Move bottle filename construction to a class 2014-07-18 15:14:57 -05:00
Jack Nagel
07003f43ca Call size on the path 2014-07-17 15:01:27 -05:00
Jack Nagel
ddefbe2c85 Use locals instead of repeatedly converting pathnames to strings 2014-07-17 15:01:26 -05:00
Jack Nagel
7b1ca1d152 Compare cellar and prefix against constants 2014-07-12 22:43:35 -05:00
Jack Nagel
58464287bc Use pkg_version accessor 2014-07-12 22:37:51 -05:00
Jack Nagel
2d8a3ac35a Use popen wrapper
Closes Homebrew/homebrew#30678.
2014-07-05 15:41:22 -05:00
Mike McQuaid
9c5943d97a bottle: use revision to find bottle block too. 2014-07-03 22:33:20 +01:00
Jack Nagel
85b6953816 Pass strings, not keg objects, to exec 2014-06-26 14:15:58 -05:00
Jack Nagel
4d9d01893e Move deprecated Formula class methods to compat
These have all been moved to Formulary.
2014-06-22 15:03:17 -05:00
Jack Nagel
10a1952d2c Only "extend self" once on the Homebrew module 2014-06-19 13:10:36 -05:00
Jack Nagel
55950bec59 bottle: cd to the repository before committing 2014-06-18 19:31:18 -05:00
Jack Nagel
4fd63dc4f8 Expose inreplace as a class method 2014-06-18 19:25:35 -05:00
Jack Nagel
d29d5d7e92 Fix some places where encoding issues manifest on ruby 2.0 2014-06-04 01:37:56 -05:00
Jack Nagel
56b041ca25 Extract history introspection from "versions" command 2014-05-28 16:23:33 -05:00
Jack Nagel
33cdff99ba Make some constant strings into actual constants
We only need one copy of each of these strings, not ~7500.
2014-05-27 21:16:15 -05:00
Jack Nagel
ff12b0e361 Skip over "mirror" lines when inserting bottle block 2014-05-23 20:42:36 -05:00
Masaki Muranaka
176e5ab72c Add an option "--root_url=" to bottle command.
Closes Homebrew/homebrew#29081.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-05-11 15:33:14 -07:00
Mike McQuaid
d90d3651b7 bottle: include revision in commit message. 2014-05-08 14:41:52 +01:00
Jack Nagel
cb9ee747e0 Fix Keg#find so we don't have to deal with it everywhere
lol inheritance
2014-03-27 17:06:05 -05:00
Jack Nagel
4353f4fc97 Detect absolute symlinks during bottle relocation check 2014-03-18 19:03:24 -05:00
Mike McQuaid
0e52cc6188 bottle: remove pyc files before bottling.
Allows more `cellar :any` bottles.
2014-03-13 10:05:20 +00:00
Jack Nagel
da26203912 Fix brew bottle --merge 2014-03-11 09:16:14 -05:00
Jack Nagel
0129542ede Update bottle command for generalized bottle implementation 2014-03-10 14:56:02 -05:00
Jack Nagel
44dc21ca5d Prepare bottle tooling for formula revisions 2014-03-05 20:45:44 -06:00
Mike McQuaid
21e5785652 bottle: fix bottling Git tag case. 2014-03-04 17:34:21 +00:00
Mike McQuaid
cf0a3fe93e bottle: detail what a new regex should match. 2014-02-22 17:15:28 +00:00
Mike McQuaid
4bc82456ee bottle: fail if there is no stable version.
Closes Homebrew/homebrew#26742.
2014-02-15 11:28:48 +00:00
Mike McQuaid
e93792fdef bottle: fix --write messages. 2014-02-09 14:34:50 +00:00
Mike McQuaid
89e07d44f6 bottle: make --write handle both quotes styles. 2014-02-09 14:34:50 +00:00
Mike McQuaid
d83ed0d793 bottle: improve bottle commit writing. 2014-01-31 19:07:57 +01:00
Mike McQuaid
2e7c423609 bottle: show diff before trying to commit. 2014-01-30 16:58:12 +01:00
Mike McQuaid
cb024e222c bottle: only print relocations with --verbose. 2014-01-20 15:26:31 -08:00
Mike McQuaid
91f7f68ec4 bottle: use new quoting style. 2014-01-19 10:06:46 -08:00
Mike McQuaid
6047e67d35 bottle: improve "not installed" message.
Fixes Homebrew/homebrew#25546.
2014-01-04 14:50:13 +00:00
Jack Nagel
7a3e9149e0 bottle: fix updating formulae with sha256 checksums 2013-12-27 16:43:34 -06:00
Jack Nagel
ec2cd31c1d bottle: use formula path accessor 2013-12-27 16:43:34 -06:00
Jack Nagel
c95b90a022 Don't send, just call the method directly 2013-12-27 16:19:43 -06:00
Jack Nagel
a6602740f8 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
f459245e6d bottle: remove unused require 2013-12-14 15:43:15 -06:00
Jack Nagel
d75577a239 bottle: avoid keeping entire strings output in memory 2013-12-14 15:43:15 -06:00