diff options
| author | Max Howell | 2009-09-03 20:58:33 +0100 |
|---|---|---|
| committer | Max Howell | 2009-09-03 20:58:33 +0100 |
| commit | 43f1c00d085bd441a746a891640f5dd695c290f9 (patch) | |
| tree | b005be68f7b0e9057857fc0b4ce0ea3c8d053732 /Library/Homebrew/utils.rb | |
| parent | b976fce418c77b494d6d4a00639029044243f2a0 (diff) | |
| download | homebrew-43f1c00d085bd441a746a891640f5dd695c290f9.tar.bz2 | |
Closes #27 (permissions to strict)
I went with 0555 as the permissions changing only occurs to bin, sbin and lib, so there shouldn't be any files in there for editing in general anyway.
Formulae can specify not to "clean" any particular file by reimplementing the skip_clean? function, in case some config file or what not ends up in there.
Also committing cosmetic fix to pretty_duration function.
Diffstat (limited to 'Library/Homebrew/utils.rb')
| -rw-r--r-- | Library/Homebrew/utils.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index 2bd05e15d..67a69dec2 100644 --- a/Library/Homebrew/utils.rb +++ b/Library/Homebrew/utils.rb @@ -42,9 +42,9 @@ def onoe error end def pretty_duration s - return "#{(s*1000).to_i} milliseconds" if s < 3 - return "#{s.to_i} seconds" if s < 10*60 - return "#{(s/60).to_i} minutes" + return "2 seconds" if s < 3 # avoids the plural problem ;) + return "#{s.to_i} seconds" if s < 120 + return "%.1f minutes" % (s/60) end def interactive_shell |
