diff options
author | Rebecca Turner <me@re-becca.org> | 2015-06-15 22:50:40 +0300 |
---|---|---|
committer | Rebecca Turner <me@re-becca.org> | 2015-06-26 03:27:16 +0300 |
commit | ab151a44da6f92ec9d5c399a78ea07b7b9bd0603 (patch) | |
tree | 99dd60add544267d8443694c94530aca69e533c3 | |
parent | 368f3767e9e1e3fd38311fd8c6d02094aa9f798e (diff) |
outdated: Don't just use path to uniq– missing deps all share path
-rw-r--r-- | lib/outdated.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/outdated.js b/lib/outdated.js index d725bd1cf..4e7ca66f4 100644 --- a/lib/outdated.js +++ b/lib/outdated.js @@ -41,7 +41,7 @@ var isExtraneous = require('./install/is-extraneous.js') var recalculateMetadata = require('./install/deps.js').recalculateMetadata function uniqName (item) { - return item[0].path + '|' + item[7] + return item[0].path + '|' + item[1] + '|' + item[7] } function uniq (list) { @@ -77,7 +77,8 @@ function outdated (args, silent, cb) { var tree = logicalTree(physicalTree) outdated_(args, '', tree, {}, 0, function (er, list) { list = uniq(list || []).sort(function (aa, bb) { - return aa[0].path.localeCompare(bb[0].path) + return aa[0].path.localeCompare(bb[0].path) || + aa[1].localeCompare(bb[1]) }) if (er || silent || list.length === 0) return cb(er, list) log.disableProgress() |