New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CPAN.pm to work with tar (GNU tar) 1.12 in NT4sp4 #735
Comments
From aichner@ecf.teradyne.comHello Andy! tar (GNU tar) 1.12 as distributed for NT by Cygnus cannot handle DOS Attached patch against If the patch is acceptable it would be nice to see it included in one Thanks for the great module! BTW: Do you require ChangeLog bits with patches? Regards, Adrian Inline Patchdiff -u c:\perl\5.00503\lib\CPAN.pm.orig c:\perl\5.00503\lib\CPAN.pm
--- c:\perl\5.00503\lib\CPAN.pm.orig Tue Oct 19 03:32:42 1999
+++ c:\perl\5.00503\lib\CPAN.pm Tue Oct 19 03:32:42 1999
@@ -4273,7 +4273,9 @@
);
}
$file =~ s/\.gz$//;
- $system = "$CPAN::Config->{tar} xvf $file";
+ chdir File::Basename::dirname($file);
+ $system = "$CPAN::Config->{tar} xvf "
+ . File::Basename::basename($file);
if (system($system)==0) {
$CPAN::Frontend->myprint(qq{Untarred $file successfully\n});
} else {
-----------------------------------------------------------------
---
Summary of my perl5 (5.0 patchlevel 5 subversion 03) configuration: Locally applied patches: @INC for perl 5.00503: Environment for perl 5.00503: |
From @andk
Thanks for the patch. Is there no chdir back needed? -- |
Migrated from rt.perl.org#1648 (status was 'resolved')
Searchable as RT1648$
The text was updated successfully, but these errors were encountered: