IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 18, 2009, 5:02:45 PM (17 years ago)
Author:
jhoblitt
Message:

start neb-cull --min_copies

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous/bin/neb-cull

    r24996 r25121  
    1616use Pod::Usage qw( pod2usage );
    1717
    18 my ($server, $volume, $one_only);
     18my ($min_copies, $server, $volume, $one_only);
    1919
    2020$server = $ENV{'NEB_SERVER'} unless $server;
    2121
    2222GetOptions(
     23    'min_copies|m=i'=> \$min_copies,
    2324    'server|s=s'    => \$server,
    2425    'volume|v=s'    => \$volume,
     
    4142    unless defined $neb;
    4243
     44$volume ||= "any";
     45$min_copies ||= 2;
     46
    4347my @cull_args;   
    4448push @cull_args, $key;
    45 if (defined $volume) {
    46     push @cull_args, $volume;
    47 }
     49push @cull_args, $volume;
    4850
    4951if ($one_only) {
     
    5860    }
    5961} else {
     62    push @cull_args, $min_copies;
    6063    unless (defined $neb->cull(@cull_args)) {
    6164        die "failed to cull Nebulous key: $key - " . $neb->err;
Note: See TracChangeset for help on using the changeset viewer.