Ignore README* in link().
This commit is contained in:
parent
0dc6e96a5a
commit
0af4e21018
1 changed files with 9 additions and 0 deletions
|
@ -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 )
|
||||
|
|
Loading…
Reference in a new issue