Changeset 152


Ignore:
Timestamp:
12/15/05 21:18:31 (18 years ago)
Author:
thauvin
Message:
  • fix call to seterror
Location:
trunk/soft/ObsData/ObsData/Archive
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/soft/ObsData/ObsData/Archive/Compressed.pm

    • Property cvs2svn:cvs-rev changed from 1.5 to 1.6
    r145 r152  
    5959     
    6060    if(!copy($sourcefh, $fh)) { 
    61         seterror("Can't copy file to destination: $!"); 
     61        $self->seterror("Can't copy file to destination: $!"); 
    6262        unlink($fname); 
    6363        return undef; 
  • trunk/soft/ObsData/ObsData/Archive/Tar.pm

    • Property cvs2svn:cvs-rev changed from 1.3 to 1.4
    r20 r152  
    5252     
    5353    if(!chdir($tempdir)) { 
    54         seterror("Can't chdir: $!"); 
     54        $self->seterror("Can't chdir: $!"); 
    5555        return undef; 
    5656    } 
    5757 
    5858    system("$self->{uncomp} '$abs_path' | tar xf - '$file'") and do { 
    59         seterror("Can't extract file from tar: $!"); 
     59        $self->seterror("Can't extract file from tar: $!"); 
    6060        chdir($here); 
    6161        return undef; 
     
    6565        open(my $fh, '>', $abs_dest) or return undef; 
    6666        if(!copy("$tempdir/$file", $fh)) { 
    67             seterror("Can't copy file to destination: $!"); 
     67            $self->seterror("Can't copy file to destination: $!"); 
    6868            unlink($abs_dest); 
    6969            chdir($here); 
Note: See TracChangeset for help on using the changeset viewer.