fix mistakes

This commit is contained in:
Pascal Rapicault
2014-09-19 17:35:41 -04:00
parent e3149896dd
commit b9fdf30ef7

View File

@@ -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,