Ignore README* in link().

This commit is contained in:
Martin Edenhofer 2013-02-02 19:52:31 +01:00
parent 0dc6e96a5a
commit 0af4e21018

View file

@ -121,6 +121,15 @@ class Package < ApplicationModel
entry = entry.sub( '//', '/' )
file = entry
file = file.sub( /#{package_base_dir.to_s}/, '' )
file = file.sub( /^\//, '' )
# ignore files
if file =~ /^README/
puts "NOTICE: Ignore #{file}"
next
end
# get new file destination
dest = @@root + '/' + file
if File.directory?( entry.to_s )