make url fetcher less restrictive on file-endings

This commit is contained in:
Dominik Richter 2016-02-22 02:43:34 +01:00
parent 5cabb7d273
commit 82195d82d6

View file

@ -18,8 +18,6 @@ module Fetchers
return nil if uri.nil? or uri.scheme.nil?
return nil unless %{ http https }.include? uri.scheme
target = transform(target)
# TODO: for now, this can be much less strict now vv
return nil unless target.end_with?('tar.gz', 'zip')
# fetch this url and hand it off
res = new(target, opts)
resolve_next(res.archive.path, res)