+ The url scheme of the emacs mirror changed and so did the name of the

downloaded tgz. Fixed that.
This commit is contained in:
jo
2014-09-02 08:21:11 +02:00
parent b400a008b4
commit 8aeb82154d

View File

@@ -9,7 +9,7 @@ require 'optparse'
#
DOWNLOAD_URL = "https://github.com/mirrors/emacs/tarball/%s"
LATEST_URL = "https://api.github.com/repos/mirrors/emacs/commits?sha=%s"
LATEST_URL = "https://api.github.com/repos/emacs-mirror/emacs/commits?sha=%s"
ROOT_DIR = File.expand_path('..', __FILE__)
TARBALL_DIR = "#{ROOT_DIR}/tarballs"
@@ -107,7 +107,7 @@ def download_tarball(sha)
url = (DOWNLOAD_URL % sha)
filename = "mirrors-emacs-#{sha[0..6]}.tgz"
filename = "emacs-mirror-emacs-#{sha[0..6]}.tgz"
target = File.join(TARBALL_DIR, filename)
if !File.exist?(target)