lib/omnibus/fetchers/net_fetcher.rb in omnibus-9.0.8 vs lib/omnibus/fetchers/net_fetcher.rb in omnibus-9.0.11
- old
+ new
@@ -145,9 +145,11 @@
# @return [String]
#
def download_url
if Config.use_s3_caching
S3Cache.url_for(self)
+ elsif Config.use_internal_sources && !source[:internal]
+ raise InternalSourceMissing.new(self)
else
source[:url]
end
end