Improved error handling.
This commit is contained in:
parent
4eed0c0bec
commit
a549f94037
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ class Package < ApplicationModel
|
|||
return if ! File.exist?( path )
|
||||
data = []
|
||||
Dir.foreach( path ) do |entry|
|
||||
if entry =~ /\.zpm/
|
||||
if entry =~ /\.zpm/ && entry !~ /^\./
|
||||
data.push entry
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue