Changeset 152
- Timestamp:
- 12/15/05 21:18:31 (18 years ago)
- 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 59 59 60 60 if(!copy($sourcefh, $fh)) { 61 seterror("Can't copy file to destination: $!");61 $self->seterror("Can't copy file to destination: $!"); 62 62 unlink($fname); 63 63 return undef; -
trunk/soft/ObsData/ObsData/Archive/Tar.pm
- Property cvs2svn:cvs-rev changed from 1.3 to 1.4
r20 r152 52 52 53 53 if(!chdir($tempdir)) { 54 seterror("Can't chdir: $!");54 $self->seterror("Can't chdir: $!"); 55 55 return undef; 56 56 } 57 57 58 58 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: $!"); 60 60 chdir($here); 61 61 return undef; … … 65 65 open(my $fh, '>', $abs_dest) or return undef; 66 66 if(!copy("$tempdir/$file", $fh)) { 67 seterror("Can't copy file to destination: $!");67 $self->seterror("Can't copy file to destination: $!"); 68 68 unlink($abs_dest); 69 69 chdir($here);
Note: See TracChangeset
for help on using the changeset viewer.