twitter/bower — pull request #85 by desandro (2012-10-08 13:03:10+00:00)
Title: Chmod temp folder

For issue #69

I was experiencing the bad file permission problem. I tracked it down to the [temp folder that gets created in `.copy()`](https://github.com/twitter/bower/blob/5d9257d908612ef2084430e99f4e490a2b4c34ca/lib/core/package.js#L232). This fix `chmod`s that temp folder to the permissions of the cached folder.

After implementing this change, `bower install jquery` properly installed the component with accessible file permissions.

---

The test is a bit sloppy. You might know how to refactor it better.

---

Head's up, `Package.prototype.download()` also uses `tmp.dir()`, but I'm not sure the best way to chmod that.