diff options
| author | Max Howell | 2009-09-30 17:45:14 +0100 |
|---|---|---|
| committer | Max Howell | 2009-09-30 17:45:38 +0100 |
| commit | a9416df158ec3e1cf38a5dcc0fc20705e8b89f56 (patch) | |
| tree | 9a29653f5db4ab339f45b0a507ef14e4b4291396 /Library | |
| parent | 9909fd44a4748d25e14fcca79e6289fdf2b8063f (diff) | |
| download | homebrew-a9416df158ec3e1cf38a5dcc0fc20705e8b89f56.tar.bz2 | |
brew list lists root keg files if not README, etc.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/brew.h.rb | 10 | ||||
| -rwxr-xr-x | Library/Homebrew/install.rb | 2 |
2 files changed, 8 insertions, 4 deletions
diff --git a/Library/Homebrew/brew.h.rb b/Library/Homebrew/brew.h.rb index 82bcafe70..5ff3ad195 100644 --- a/Library/Homebrew/brew.h.rb +++ b/Library/Homebrew/brew.h.rb @@ -21,6 +21,8 @@ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # +FORMULA_META_FILES = %w[README ChangeLog COPYING LICENSE COPYRIGHT AUTHORS] + def __make url, name require 'formula' @@ -306,15 +308,17 @@ class PrettyListing (pnn.extname == '.dylib' or pnn.extname == '.pc') and not pnn.symlink? end else - print_dir pn + if pn.directory? + print_dir pn + elsif not FORMULA_META_FILES.include? pn.basename.to_s + puts pn + end end end end private def print_dir root - return unless root.directory? - dirs = [] remaining_root_files = [] other = '' diff --git a/Library/Homebrew/install.rb b/Library/Homebrew/install.rb index 82785ea99..86836831e 100755 --- a/Library/Homebrew/install.rb +++ b/Library/Homebrew/install.rb @@ -60,7 +60,7 @@ def install f f.prefix.mkpath beginning=Time.now f.install - %w[README ChangeLog COPYING LICENSE COPYRIGHT AUTHORS].each do |file| + FORMULA_META_FILES.each do |file| FileUtils.mv "#{file}.txt", file rescue nil f.prefix.install file rescue nil end |
