diff options
author | isaacs <i@izs.me> | 2010-07-19 12:20:17 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2010-07-19 12:20:17 +0400 |
commit | 820db98a5fe6bc1933d72379be52a5cdb9e0d207 (patch) | |
tree | 6c7f84156a3e1999e327ec66ef95b3df47ddbfac | |
parent | 62f9dfa33f872855129b506d06b9d7206806118a (diff) |
return when all versions are listedv0.1.20
-rw-r--r-- | lib/utils/read-installed.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils/read-installed.js b/lib/utils/read-installed.js index 0be942ff7..8746f333e 100644 --- a/lib/utils/read-installed.js +++ b/lib/utils/read-installed.js @@ -37,7 +37,7 @@ function readInstalled (args, cb) { if (activeVersion && data[package][activeVersion]) { data[package][activeVersion].active = true } - if (!version) listed() + if (!version || version.charAt(0) === ".") return listed() if (version !== "active") { data[package][version] = data[package][version] || {} return process.nextTick(V) |