Xu Cheng d3fce64efb
cleanup: fix removing lock files on NFS
If the underneath file system is a Network File System,
`brew cleanup` will fail to remove the lock files with following error
message:

Error: Bad file descriptor @ rb_file_flock - /path/to/the/lock_file

This commit fixes such issue and adds the corresponding test case.
2018-03-14 21:50:53 +08:00
..
2018-03-08 14:10:02 +00:00
2018-03-08 14:10:02 +00:00
2018-03-08 14:10:02 +00:00
2017-11-30 09:42:14 +00:00
2017-11-18 17:04:54 -08:00
2018-03-08 08:34:20 +00:00
2017-11-05 15:37:57 +00:00
2018-01-18 21:09:21 +00:00
2018-03-08 14:10:02 +00:00
2017-10-18 14:39:09 +02:00
2018-03-05 10:36:39 +00:00
2017-10-24 19:39:40 +02:00
2018-03-08 09:18:52 +00:00
2018-03-05 10:14:39 +00:00
2018-02-22 19:46:58 +00:00
2018-01-22 01:10:14 -08:00
2017-10-24 19:39:40 +02:00
2018-02-22 19:46:58 +00:00
2018-03-08 14:10:02 +00:00
2018-03-08 14:10:02 +00:00
2018-01-28 19:07:01 +00:00
2017-11-05 15:39:43 +00:00

Homebrew's Formula API

This is the (partially) documented public API for Homebrew.

The main class you should look at is the {Formula} class (and classes linked from there). That's the class that's used to create Homebrew formulae (i.e. package descriptions). Assume anything else you stumble upon is private.

You may also find the Formula Cookbook and Ruby Style Guide helpful in creating formulae.

Good luck!