Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Commit

Permalink
Merge pull request #1023 from drewfish/dupe-libs
Browse files Browse the repository at this point in the history
fix issue 812:  only walk the first/shallowest version of each package
  • Loading branch information
drewfish committed Mar 7, 2013
2 parents 6e80f52 + afa3c10 commit fb1e90b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/app/autoload/store.server.js
Original file line number Diff line number Diff line change
Expand Up @@ -1683,7 +1683,7 @@ YUI.add('mojito-resource-store', function(Y, NAME) {
if (!info.pkg.yahoo || !info.pkg.yahoo.mojito) {
return;
}
visitKey = [info.pkg.name, info.pkg.version].join('@');
visitKey = info.pkg.name;
if (this._packagesVisited[visitKey]) {
Y.log('skipping duplicate package ' + visitKey + '\nskipping ' +
info.dir + '\nprev used ' + this._packagesVisited[visitKey], 'info', NAME);
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/lib/app/autoload/test-store.server.js
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ YUI().use(
var oldlog = Y.log;
var logged = false;
Y.log = function(msg, lvl, src) {
if ('info' === lvl && 'mojito-resource-store' === src && msg.match(/^skipping duplicate package a@666\.1\.0/)) {
if ('info' === lvl && 'mojito-resource-store' === src && msg.match(/^skipping duplicate package a/)) {
logged = true;
}
};
Expand Down

0 comments on commit fb1e90b

Please sign in to comment.