Improved error handling.

This commit is contained in:
Martin Edenhofer 2014-03-10 16:45:52 +01:00
parent 4eed0c0bec
commit a549f94037

View file

@ -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