component/component — pull request #105 by heavyk (2012-10-26 06:34:50+00:00)
Title: 'end' event never emitted for dependencies

I found that when installing a package with dependencies that already existed, the 'end' event is never fired after pkg.install() - this is because the batch never finishes.

function is wrapped, because the argument passed on the exists event will be considered an error