diff --git a/tools/catalog-bootstrap-prebuilt.js b/tools/catalog-bootstrap-prebuilt.js index 35a9e9a309..539bb9e346 100644 --- a/tools/catalog-bootstrap-prebuilt.js +++ b/tools/catalog-bootstrap-prebuilt.js @@ -1,7 +1,12 @@ var fs = require('fs'); var _ = require('underscore'); var packageCache = require('./package-cache.js'); +var path = require('path'); +// The BootstrapCatalogPrebuilt is a catalog that represents the packages used to bootstrap meteor +// It is meant to work when we are running meteor in the "real" format +// This catalog is typically never used directly by the user. +// An instance of this catalog is created in catalog.js var BootstrapCatalogPrebuilt = function (uniloadDir) { var self = this; @@ -16,9 +21,6 @@ _.extend(BootstrapCatalogPrebuilt.prototype, { throw Error("no uniloadDir?"); self.uniloadDir = options.uniloadDir; - // Make empty data structures for all the things. - self.reset(); - self._knownPackages = {}; _.each(fs.readdirSync(options.uniloadDir), function (package) { if (fs.existsSync(path.join(options.uniloadDir, package,