Permalink
Browse files

[dist] Use `rimraf` fixed to work with SunOS

  • Loading branch information...
1 parent e6e6a3e commit bc72d0b7ef4eeba60f1e54abbb13ef4659d66dab @mmalecki committed Feb 6, 2013
Showing with 8 additions and 4 deletions.
  1. +5 −1 node_modules/rimraf/package.json
  2. +2 −2 node_modules/rimraf/rimraf.js
  3. +1 −1 package.json
@@ -51,5 +51,9 @@
"dependencies": {
"graceful-fs": "~1"
},
- "_from": "rimraf@2"
+ "dist": {
+ "shasum": "aa9e31df706ef3c3c712d05fd1af1d986500e479"
+ },
+ "_resolved": "git+https://github.com/mmalecki/rimraf#7a3d03089907f1cdb2282fd303d3549f98892559",
+ "_from": "git+https://github.com/mmalecki/rimraf#sunos"
}
@@ -69,11 +69,11 @@ function rimraf_ (p, cb) {
}
function rmdir (p, originalEr, cb) {
- // try to rmdir first, and only readdir on ENOTEMPTY
+ // try to rmdir first, and only readdir on ENOTEMPTY or EEXIST (SunOS)
// if we guessed wrong, and it's not a directory, then
// raise the original error.
fs.rmdir(p, function (er) {
- if (er && er.code === "ENOTEMPTY")
+ if (er && (er.code === "ENOTEMPTY" || er.code === "EEXIST"))
rmkids(p, cb)
else if (er && er.code === "ENOTDIR")
cb(originalEr)
View
@@ -41,7 +41,7 @@
"graceful-fs": "~1.2.0",
"minimatch": "~0.2.8",
"nopt": "~2.1.1",
- "rimraf": "2",
+ "rimraf": "git+https://github.com/mmalecki/rimraf#sunos",
"request": "~2.9",
"which": "1",
"tar": "~0.1.12",

0 comments on commit bc72d0b

Please sign in to comment.