diff --git a/tools/catalog-remote.js b/tools/catalog-remote.js index de95d414af..505e5168e0 100644 --- a/tools/catalog-remote.js +++ b/tools/catalog-remote.js @@ -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) {