[Module-build-checkins] Module-Build/lib/Module/Build Compat.pm,1.74,1.75
Status: Beta
Brought to you by:
kwilliams
From: Ken W. <kwi...@us...> - 2006-03-04 16:27:21
|
Update of /cvsroot/module-build/Module-Build/lib/Module/Build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17765/lib/Module/Build Modified Files: Compat.pm Log Message: Query CPAN's uptodate() method after installing M::B::Compat Index: Compat.pm =================================================================== RCS file: /cvsroot/module-build/Module-Build/lib/Module/Build/Compat.pm,v retrieving revision 1.74 retrieving revision 1.75 diff -u -d -r1.74 -r1.75 --- Compat.pm 1 Mar 2006 22:46:22 -0000 1.74 +++ Compat.pm 4 Mar 2006 16:27:09 -0000 1.75 @@ -90,8 +90,9 @@ # Save this 'cause CPAN will chdir all over the place. my $cwd = Cwd::cwd(); - # There seems to be no way to determine if this install was successful CPAN::Shell->install('Module::Build::Compat'); + CPAN::Shell->expand("Module", "Module::Build::Compat")->uptodate + or die "Couldn't install Module::Build, giving up.\n"; chdir $cwd or die "Cannot chdir() back to $cwd: $!"; } |