diff options
| author | Jack Nagel | 2013-12-14 09:35:57 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-12-14 09:35:57 -0600 |
| commit | 935091cd8ef29b605971d7b208abbd3ee266e5c3 (patch) | |
| tree | 19feb454805c200107560164fe974be6be3d8426 /Library/Homebrew/keg.rb | |
| parent | 5994fd469cd8561814d84076f3f1d268b1242c98 (diff) | |
| download | brew-935091cd8ef29b605971d7b208abbd3ee266e5c3.tar.bz2 | |
Pathname#extname returns a string
Diffstat (limited to 'Library/Homebrew/keg.rb')
| -rw-r--r-- | Library/Homebrew/keg.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/keg.rb b/Library/Homebrew/keg.rb index 5fbfa9f69..e1178d5dd 100644 --- a/Library/Homebrew/keg.rb +++ b/Library/Homebrew/keg.rb @@ -246,7 +246,7 @@ class Keg < Pathname Find.prune if File.basename(src) == '.DS_Store' # Don't link pyc files because Python overwrites these cached object # files and next time brew wants to link, the pyc file is in the way. - if src.extname.to_s == '.pyc' && src.to_s =~ /site-packages/ + if src.extname == '.pyc' && src.to_s =~ /site-packages/ Find.prune end @@ -274,7 +274,7 @@ class Keg < Pathname next if dst.directory? and not dst.symlink? # no need to put .app bundles in the path, the user can just use # spotlight, or the open command and actual mac apps use an equivalent - Find.prune if src.extname.to_s == '.app' + Find.prune if src.extname == '.app' case yield src.relative_path_from(root) when :skip_dir |
