repo.entries.each do |entry|
match = entry.path.match(regexp)
if match
Publication.find_or_create_by_name(:name => match[1],
:source_file => entry.path, :repository_id => repo.id)
repo.entries.each do |entry|
match = entry.path.match(regexp)
if match
Publication.find_or_create_by_name(:name => match[1],
:source_file => entry.path, :repository_id => repo.id)