Skip to content
Snippets Groups Projects
Commit e0c23d67 authored by Michael Dippery's avatar Michael Dippery Committed by Adam Vandenberg
Browse files

More .DS_Store ignoring


* Don't link .DS_Store files
* Don't list .DS_Store files in `brew info`

Signed-off-by: default avatarAdam Vandenberg <flangy@gmail.com>
parent 2712dd6b
No related branches found
No related tags found
No related merge requests found
......@@ -198,6 +198,7 @@ def info f
if f.prefix.parent.directory?
kids=f.prefix.parent.children
kids.each do |keg|
next if keg.basename.to_s == '.DS_Store'
print "#{keg} (#{keg.abv})"
print " *" if f.installed_prefix == keg and kids.length > 1
puts
......
......@@ -92,7 +92,7 @@ class Pathname
def abv
out=''
n=`find #{to_s} -type f | wc -l`.to_i
n=`find #{to_s} -type f ! -name .DS_Store | wc -l`.to_i
out<<"#{n} files, " if n > 1
out<<`/usr/bin/du -hd0 #{to_s} | cut -d"\t" -f1`.strip
end
......
......@@ -98,7 +98,7 @@ protected
dst.extend ObserverPathnameExtension
if src.file?
dst.make_relative_symlink src
dst.make_relative_symlink src unless File.basename(src) == '.DS_Store'
elsif src.directory?
# if the dst dir already exists, then great! walk the rest of the tree tho
next if dst.directory? and not dst.symlink?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment