117 Commits

Author SHA1 Message Date
Xu Cheng
609af678fd bottle: improve relocation
* skip document for relocatable check
* relocate INSTALL_RECEIPT.json file

Fixes Homebrew/homebrew#41545.

Closes Homebrew/homebrew#41568.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-07-10 23:28:41 +08:00
Xu Cheng
4443a87524 stop setting root_url for offical taps' bottles 2015-07-06 18:04:59 +08:00
Xu Cheng
3c418cfb4e bottle: add homepage and desc into regex
Some formulae put `desc` field behind `url` which can make bottle block go to strange place.
So let's add `homepage` and `desc` into bottle regex.

Closes Homebrew/homebrew#40469.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-06-07 20:33:25 +08:00
Xu Cheng
be18a816af bottle: remove bottle_filename_formula_name 2015-06-02 16:45:44 +08:00
Xu Cheng
fbf1af24d7 bottle: use Formula#full_name 2015-05-29 17:02:22 +08:00
Jack Nagel
5cb392d9d7 Revert "Check empty? to avoid introducing nils"
This reverts commit 580cd173cbf92aa9851e68d635af518a668a6cdc.
2015-05-28 23:57:02 -04:00
Xu Cheng
8a4dcdd5a1 bottle: use ARGV.resolved_formulae 2015-05-27 13:53:41 +08:00
Jack Nagel
be0a1e7635 Check empty? to avoid introducing nils
[].last => nil
[].max => nil
2015-05-26 19:51:30 -04:00
Mike McQuaid
d8f9552cab bottle: handle nil bottle revision case. 2015-05-26 15:49:39 +01:00
Ian Lancaster
c327fdafa9 bottle: discard bottle revision from prior pkg_version
Closes Homebrew/homebrew#38628.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-05-26 19:21:15 +08:00
Xu Cheng
a972565739 bottle: matching url with options
Closes Homebrew/homebrew-versions#791.

Closes Homebrew/homebrew#39137.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-04-28 18:59:40 +08:00
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