15 Commits

Author SHA1 Message Date
Jack Nagel
32b7c9ff15 unpack: use correct constant scope for DATA
Formula::DATA only worked by accident of implementation; DATA during the
build is actually Object::DATA, so we should mirror that here.

This reverts commit b12444ba6e1ac1d596a70ff4c777d9386d0791ac.
2014-04-29 15:41:23 -05:00
Charlie Sharpsteen
69573ba7a2 brew-unpack: Handle new style :DATA patches
Instances of `IOPatch` created by `patch :DATA` are not affected by re-setting
the `DATA` constant of the `Formula` instance. For these patches, we iterate
through the `patchlist` and use `instance_variable_set` to attach data.

A bit hacky, but `patchlist` has no write accessors so there isn't a clean way
to modify patch contents.
2014-04-29 10:46:02 -07:00
Jack Nagel
db08d3017c brew-unpack: don't chdir further than a normal install would
If we want to generate usable patches from inside the unpacked source,
then we should start from the same directory that a normal install
would start from.
2014-03-13 11:29:48 -05:00
Jack Nagel
088c1b550a brew-unpack: separate args passed to system 2014-03-13 11:29:48 -05:00
Jack Nagel
fba5bf85b0 brew-unpack: use extend instead of reopening Formula 2014-03-13 11:29:48 -05:00
Jack Nagel
6e2a469e8b brew-unpack: remove obsoleted bottle workaround 2014-03-12 18:47:29 -05:00
Misty De Meo
71fcefc613 brew-unpack: use #length == 1, not #one?
Array#one? wasn't yet defined in Ruby 1.8.6. In this case the block form
isn't being used, so Array.length == 1 is a simple replacement.

Fixes mistydemeo/tigerbrew#123.
2013-10-26 21:51:30 -07:00
Jack Nagel
ccbac62677 unpack: don't attempt to chdir into regular files 2013-08-14 22:15:07 -05:00
Jack Nagel
69058bd67f unpack: don't call realpath on potentially non-existent directory 2013-08-14 22:13:55 -05:00
Jack Nagel
b0073ccdf0 unpack: extract usage 2013-08-14 22:13:26 -05:00
Jack Nagel
262afced5e unpack: use ARGV.value 2013-08-14 20:11:40 -05:00
Jack Nagel
c4b278dfce unpack: remove dead code 2013-08-14 20:11:30 -05:00
Jack Nagel
b408b19208 unpack: ensure $VERBOSE is restored 2013-08-14 20:11:11 -05:00
Misty De Meo
a69552a57d unpack: s/allready/already/ 2013-05-22 10:03:22 -05:00
Mike McQuaid
4a281cd5cf Rename Library/Contributions/cmds -> cmd. 2013-02-18 10:42:44 +00:00