Skip to content

Commit

Permalink
Item2263: Fix test for Archive::Tar and Archive::Zip
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/branches/Release01x00@5278 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
GeorgeClark authored and GeorgeClark committed Oct 16, 2009
1 parent 26e3762 commit 49068ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/tools/extender.pl
Expand Up @@ -647,7 +647,7 @@ sub unzip {
my $archive = shift;

eval 'require Archive::Zip';
if ( $@ ) {
if (! $@ ) {
my $zip = Archive::Zip->new();
my $err = $zip->read($archive);
if ( $err ) {
Expand Down Expand Up @@ -690,7 +690,7 @@ sub untar {
my $compressed = ( $archive =~ /z$/i ) ? 'z' : '';

eval 'require Archive::Tar';
if ( $@ ) {
if (! $@ ) {
my $tar = Archive::Tar->new();
my $numberOfFiles = $tar->read( $archive, $compressed );
unless ( $numberOfFiles > 0 ) {
Expand Down

0 comments on commit 49068ed

Please sign in to comment.