Changeset 179


Ignore:
Timestamp:
12/22/05 14:32:45 (18 years ago)
Author:
thauvin
Message:
  • add --only-new and --only-old options
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/soft/ObsData/bin/obsdata

    • Property cvs2svn:cvs-rev changed from 1.16 to 1.17
    r178 r179  
    3030    'h|help' => sub { pod2usage(-exitval => 0) }, 
    3131    'i' => \my $interactif, 
     32    'only-new' => \my $onlynew, 
     33    'only-old' => \my $onlyold, 
    3234) or pod2usage(); 
    3335 
     
    7678    my ($oa, $oe) = @_; 
    7779    for ($oe->id) { 
     80        /^do_archive$/ and do { 
     81            if ($onlyold && !$oe->test_result('archive_exists')) { 
     82                return 0; 
     83            } 
     84            if($onlynew && $oe->test_result('archive_exists')) { 
     85                return 0 
     86            } 
     87        }; 
    7888        /^overwrite$/ && !$oe->test_result('dest_exists') and return 1; 
    7989    } 
Note: See TracChangeset for help on using the changeset viewer.