Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Commit

Permalink
Closes GH-734 Newer things must be newer to count
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Mar 21, 2011
1 parent 5d212a7 commit b04cb44
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/outdated.js
Expand Up @@ -26,6 +26,7 @@ var readInstalled = require("./utils/read-installed")
, asyncMap = require("./utils/async-map")
, npm = require("../npm")
, log = require("./utils/log")
, semver = require("./utils/semver")

// outdated(pref)
// deps = pref/package.json dependencies, or {<pref/node_modules/*>:"*"}
Expand Down Expand Up @@ -118,7 +119,7 @@ function validateDep (prefix, args, dep, req, cb) {
if (current === -1) return log("waiting for current")
// now we know the current version (or false if it's not there)
// and have the version that it ought to be.
var needsUpdate = canUpdate && current !== latest
var needsUpdate = canUpdate && semver.gt(latest, current)
cb(null, current, needsUpdate)
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{ "name" : "npm"
, "description" : "A package manager for node"
, "keywords" : [ "package manager", "modules", "install", "package.json" ]
, "version" : "1.0.0-0-rc"
, "version" : "1.0.0-1-rc"
, "tag" : "rc"
, "homepage" : "http://npmjs.org/"
, "author" : "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me)"
Expand Down

0 comments on commit b04cb44

Please sign in to comment.