mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Merge pull request #7373 from meteor/laosb-override-warehouse-base-url
Ability to override the default warehouse url base
This commit is contained in:
@@ -299,6 +299,12 @@ _.extend(exports.Tropohouse.prototype, {
|
||||
// XXX: Error handling.
|
||||
_downloadBuildToTempDir: function (versionInfo, buildRecord) {
|
||||
var url = buildRecord.build.url;
|
||||
|
||||
// Override the download domain name and protocol if METEOR_WAREHOUSE_URLBASE
|
||||
// provided.
|
||||
if (process.env.METEOR_WAREHOUSE_URLBASE) {
|
||||
url = url.replace(/^[a-zA-Z]+:\/\/[^\/]+/, process.env.METEOR_WAREHOUSE_URLBASE);
|
||||
}
|
||||
|
||||
// XXX: We use one progress for download & untar; this isn't ideal:
|
||||
// it relies on extractTarGz being fast and not reporting any progress.
|
||||
|
||||
Reference in New Issue
Block a user