Skip to content

Commit

Permalink
only lookup workspaces sources once
Browse files Browse the repository at this point in the history
  • Loading branch information
cadorn committed Sep 27, 2011
1 parent 1f7a447 commit 6c83789
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pinf-loader-js/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -325,9 +325,9 @@ var boot = exports.boot = function(options)
var descriptors = [];
for (var key in sourceDescriptors)
descriptors.push(sourceDescriptors[key]);
if (!API.ENV.ignoreGlobalPINF)
if (!API.ENV.ignoreGlobalPINF && !sourceDescriptors["/pinf/workspaces/**"])
{
descriptors.push(new DESCRIPTORS.WorkspaceSources("/pinf/workspaces/"));
descriptors.push(new DESCRIPTORS.WorkspaceSources("/pinf/workspaces"));
}
sourceDescriptors = descriptors;
if (API.DEBUG.enabled)
Expand Down

0 comments on commit 6c83789

Please sign in to comment.