mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
fix getReleaseWithTool
This commit is contained in:
@@ -646,6 +646,16 @@ _.extend(RemoteCatalog.prototype, {
|
||||
return result[0];
|
||||
},
|
||||
|
||||
// Get a release version with a given tool
|
||||
getReleaseWithTool: function (toolSpec) {
|
||||
var self = this;
|
||||
// XXX: In the future, we should consider adding tool as a column and
|
||||
// implementing table upgrades
|
||||
var allVersions = self._queryAsJSON(
|
||||
"SELECT content FROM releaseVersions");
|
||||
return _.findWhere(allVersions, { tool: toolSpec });
|
||||
},
|
||||
|
||||
// Used by make-bootstrap-tarballs. Only should be used on catalogs that are
|
||||
// specially constructed for bootstrap tarballs.
|
||||
forceRecommendRelease: function (track, version) {
|
||||
|
||||
Reference in New Issue
Block a user