Changeset 205


Ignore:
Timestamp:
01/25/06 14:11:55 (18 years ago)
Author:
thauvin
Message:
  • add a lazy behaviour about index, write it for data/archive only if data are changed
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/soft/ObsData/ObsData/Repository.pm

    • Property cvs2svn:cvs-rev changed from 1.76 to 1.77
    r203 r205  
    145145    $self->{statusfile} or return; 
    146146    if (!$self->{dry_run}) { 
     147        $self->logging(0, 
     148            "Writing status file: %s", 
     149            $self->{statusfile}, 
     150        ); 
    147151        $self->update_global_status; 
    148152        $self->{status}->WriteConfig($self->{statusfile}); 
     
    329333 
    330334    bless($or, $class); 
     335} 
     336 
     337sub DESTROY { 
     338    my ($self) = @_; 
     339    if ($self->{status_changed}) { 
     340        $self->save_status 
     341    } 
    331342} 
    332343 
     
    386397        $self->{archivefile}, $var, $comment 
    387398    ) if(defined($comment)); 
     399    $self->{status_changed} = 1; 
    388400} 
    389401 
Note: See TracChangeset for help on using the changeset viewer.