mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
fix mistakes
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user