miyagawa/cpanminus — pull request #125 by motemen (2011-11-01 10:04:46+00:00)
Title: chdir to original working directory before each installing module

When working with local module, cpanminus chdirs to its directory and does not return to original cwd.

So working on several local modules fails after first one:

% cpanm --installdeps ./local/a ./local/b
--> Working on ./local/a
Configuring local-a-0.00 ... OK
<== Installed dependencies for ./local/a. Finishing.
! Finding ./local/b on cpanmetadb failed.
! Finding ./local/b on search.cpan.org failed.
! Finding ./local/b () on mirror http://search.cpan.org/CPAN failed.
! Couldn't find module or a distribution ./local/b ()