mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Use more tough server: GitHub or repo.or.cz
https://gcc.gnu.org/wiki/GitMirror git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
81ece7f0a1
commit
8f0268991c
1 changed files with 5 additions and 1 deletions
|
@ -40,7 +40,11 @@ class Downloader
|
||||||
|
|
||||||
class GNU < self
|
class GNU < self
|
||||||
def self.download(name, *rest)
|
def self.download(name, *rest)
|
||||||
super("#{https}://gcc.gnu.org/git/?p=gcc.git;a=blob_plain;f=#{name};hb=master", name, *rest)
|
if https == 'https'
|
||||||
|
super("https://raw.githubusercontent.com/gcc-mirror/gcc/master/#{name}", name, *rest)
|
||||||
|
else
|
||||||
|
super("http://repo.or.cz/official-gcc.git/blob_plain/HEAD:/#{name}", name, *rest)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue