lib/indexer/loadable.rb in indexer-0.3.0 vs lib/indexer/loadable.rb in indexer-0.3.1
- old
+ new
@@ -129,13 +129,13 @@
sources = sources.flatten
if sources.empty?
if file = exists?
metadata = Metadata.open
- sources = metadata.sources
+ sources = metadata.sources
else
- sources = Dir.glob(USER_FILES, File::FNM_CASEFOLD)
- raise Error.exception("could not find default sources") if sources.empty?
+ #sources = Dir.glob(USER_FILES, File::FNM_CASEFOLD)
+ raise Error.exception("Could not find a metadata source.") if sources.empty?
end
end
if file && !opts[:force]
date = sources.map{ |s| File.mtime(s) }.max