Changeset 153
- Timestamp:
- 12/15/05 21:23:49 (18 years ago)
- Location:
- branches/v0_1/soft/ObsData/ObsData/Archive
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/v0_1/soft/ObsData/ObsData/Archive/Compressed.pm
- Property cvs2svn:cvs-rev changed from 1.4 to 1.4.2.1
r72 r153 43 43 $fname = $dest; 44 44 open($fh, '>', $dest) or do { 45 seterror("Can't uncompress archive: $!");45 $self->seterror("Can't uncompress archive: $!"); 46 46 return undef; 47 47 }; … … 51 51 UNLINK => 1, 52 52 ) or do { 53 seterror("Can't create temp file: $!");53 $self->seterror("Can't create temp file: $!"); 54 54 return undef; 55 55 }; … … 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; -
branches/v0_1/soft/ObsData/ObsData/Archive/Tar.pm
- Property cvs2svn:cvs-rev changed from 1.3 to 1.3.2.1
r20 r153 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.