update list_outdated module split to both old and new module delimiter.

reviewable/pr18780/r1
Joe Maller 11 years ago
parent 0b890aa747
commit d53d2c3074

@ -163,7 +163,9 @@ class Npm(object):
data = self._exec(['outdated'], True, False)
for dep in data.splitlines():
if dep:
pkg, other = dep.split('@', 1)
# node.js v0.10.22 changed the `npm outdated` module separator
# from "@" to " ". Split on both for backwards compatibility.
pkg, other = re.split('\s|@', dep, 1)
outdated.append(pkg)
return outdated

Loading…
Cancel
Save